11#! /usr/bin/env bash
22#
33# Dev-Control Git Tree Visualizer
4- # Creates fractal/mandelbrot-style git tree visualization
4+ # Creates fractal/mandelbrot-style git tree visualisation
55#
66# Generates:
77# - SVG for static embedding in README
@@ -61,15 +61,15 @@ while [[ $# -gt 0 ]]; do
6161 ;;
6262 -h|--help)
6363 cat << -EOF
64- Git Tree Visualizer - Fractal/Mandelbrot-style git history visualization
64+ Git Tree Visualizer - Fractal/Mandelbrot-style git history visualisation
6565
6666Usage: create-tree.sh [OPTIONS]
6767
6868Options:
6969 --svg-only Generate only SVG (static, README-compatible)
7070 --html-only Generate only HTML (interactive with animations)
7171 --no-embed Don't auto-inject into README
72- --max-commits N Limit visualization to N commits (default: 500)
72+ --max-commits N Limit visualisation to N commits (default: 500)
7373 --output-dir DIR Output directory (default: .github/tree-viz)
7474 -h, --help Show this help
7575
9494# ============================================================================
9595
9696print_header
97- print_info " Git Tree Visualizer - Creating fractal tree visualization "
97+ print_info " Git Tree Visualizer - Creating fractal tree visualisation "
9898
9999# Create output directory
100100mkdir -p " $OUTPUT_DIR "
127127
128128# Step 5: Embed in README
129129if [[ " $EMBED_README " == " true" && " $GENERATE_SVG " == " true" ]]; then
130- print_info " Embedding visualization in README..."
130+ print_info " Embedding visualisation in README..."
131131
132132 # Find README
133133 README=" "
@@ -145,13 +145,13 @@ if [[ "$EMBED_README" == "true" && "$GENERATE_SVG" == "true" ]]; then
145145 # Check if tree-viz section already exists
146146 if grep -q " <!-- TREE-VIZ-START -->" " $README " ; then
147147 # Replace existing section
148- print_info " Updating existing tree visualization in README..."
148+ print_info " Updating existing tree visualisation in README..."
149149 # Create temp file with new content
150150 awk -v path=" $README_REL_PATH " '
151151 /<!-- TREE-VIZ-START -->/ {
152152 print $0
153153 print ""
154- print ""
154+ print ""
155155 print ""
156156 in_tree=1
157157 next
@@ -164,12 +164,12 @@ if [[ "$EMBED_README" == "true" && "$GENERATE_SVG" == "true" ]]; then
164164 mv " $README .tmp" " $README "
165165 else
166166 # Append new section
167- print_info " Adding tree visualization section to README..."
167+ print_info " Adding tree visualisation section to README..."
168168 cat >> " $README " << -EOF
169169
170170<!-- TREE-VIZ-START -->
171171
172- ## Git Tree Visualization
172+ ## Git Tree Visualisation
173173
174174
175175
186186
187187# Summary
188188echo " "
189- print_success " Visualization complete!"
189+ print_success " Visualisation complete!"
190190echo " "
191191echo " Generated files:"
192192[[ " $GENERATE_SVG " == " true" ]] && echo " • SVG: $OUTPUT_DIR /git-tree.svg"
0 commit comments