4 ms·
I addressed this here -- that solution doesn't really work with multiple fields that contain spaces: https://www.reddit.com/r/commandline/comments/719pm2/how_t
by chubot 9y ago
I addressed this here -- that solution doesn't really work with multiple fields that contain spaces:
https://www.reddit.com/r/commandline/comments/719pm2/how_to_quickly_and_correctly_generate_a_git_log/dn9klp1/ https://www.reddit.com/r/commandline/comments/719pm2/how_to_...
- js2 9y agoI admit at that point you might want to break out perl: git log --pretty='format:%H%x00%an%x00%aE%x00%s' | perl -F'\0' -ane ' chomp; print "<tr>\n"; foreach(@F) { s|&|&|g; s|<|<|g; s|>|>|g; print "<td>$_</td>\n"; } print "</tr>\n"' :)