23454eb5 (Michael Moser 2025-11-20 06:30:24 +0200  1) # git_html_listing.sh
23454eb5 (Michael Moser 2025-11-20 06:30:24 +0200  2) 
c6f76af0 (MoserMichael  2025-11-20 08:37:18 +0200  3) A shell script for producing an html listing for the change history of each file in a git repository.
451c3912 (MoserMichael  2026-01-06 07:41:14 +0200  4) 
451c3912 (MoserMichael  2026-01-06 07:41:14 +0200  5) The script creates a index.html file with an entry per file that is part of the git repository.
451c3912 (MoserMichael  2026-01-06 07:41:14 +0200  6) 
451c3912 (MoserMichael  2026-01-06 07:41:14 +0200  7) Each entry contains a link to the history log of the file and a  link to git blame listing for that file.  
451c3912 (MoserMichael  2026-01-06 07:41:14 +0200  8) 
451c3912 (MoserMichael  2026-01-06 07:41:14 +0200  9) Each line of the git blame listing is linking to the commit where it came from.
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 10) 
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 11) 
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 12) ## installation
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 13) 
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 14) Copy the files
e0f25138 (MoserMichael  2025-11-20 08:01:50 +0200 15) - [git_html_listing.sh](https://raw.githubusercontent.com/MoserMichael/git_html_listing/refs/heads/main/git_html_listing.sh) and [ansi2html.sh](https://raw.githubusercontent.com/MoserMichael/git_html_listing/refs/heads/main/ansi2html.sh) into the same directory
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 16) - you also need the presence of git, sed, gawk
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 17) 
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 18) ## Thanks
0e6c62ee (MoserMichael  2025-11-20 07:17:15 +0200 19) 
da1940d0 (MoserMichael  2025-11-20 07:45:57 +0200 20) This script uses [ansi2html.sh](https://www.pixelbeat.org/scripts/ansi2html.sh)
da1940d0 (MoserMichael  2025-11-20 07:45:57 +0200 21) 
da1940d0 (MoserMichael  2025-11-20 07:45:57 +0200 22) ## Example html listing for this repository
d93b2f7b (MoserMichael  2025-11-20 08:16:14 +0200 23)   
d93b2f7b (MoserMichael  2025-11-20 08:16:14 +0200 24) [see link](https://mosermichael.github.io/git_html_listing/html_history_listing/index.html)