Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
diff in html version so i can share as excel easily. (copy & paste)
- Loading branch information
1 parent
335ff80
commit b70fdbb
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
|
||
echo "Usage: $0 <startCommitSHA> <startCommitSHA>\n\n" | ||
|
||
rm out.txt && touch out.txt | ||
outputFile="out.html" | ||
rm $outputFile && touch $outputFile | ||
# 3b9aea39c7..37c07544408b | ||
|
||
echo "Start from Commit SHA: $1\n" | ||
echo "End at Commit SHA: $2" | ||
|
||
`echo "<html><head><style>td{white-space: pre;}</style></head><body><table border=1>" >> $outputFile` | ||
|
||
git log --pretty='format:' --name-only $1..$2 | sort -u | while read line | ||
do | ||
if [ -n "${line}" ]; then | ||
`echo "\n\n\n\nFile: ($line)\n--------------------------------------------\n" >> out.txt` | ||
git log --pretty=oneline --abbrev-commit $1..$2 -- $line >> out.txt | ||
`echo "<tr>" >> $outputFile` | ||
`echo "<td>File: ($line)</td>" >> $outputFile` | ||
`echo "<td>" >> $outputFile` | ||
git log --pretty=oneline --abbrev-commit $1..$2 -- $line >> $outputFile | ||
`echo "</td></tr>" >> $outputFile` | ||
|
||
# --all --full-history | ||
fi | ||
done | ||
`echo "</table></body></html>" >> $outputFile` | ||
|
||
echo "\n\nSaved to out.txt" | ||
echo "\n\nSaved to $outputFile" |