diff options
Diffstat (limited to 'git-log-describe.awk')
-rwxr-xr-x | git-log-describe.awk | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-log-describe.awk b/git-log-describe.awk index 0ac233e..9bb5896 100755 --- a/git-log-describe.awk +++ b/git-log-describe.awk @@ -24,6 +24,8 @@ function has_color(str) { indent_len = length($0) - text_len; } +# match only git's "commit" label, not something from the commit message. +$0 ~ /^commit/ && $1 == "commit" && $2 ~ /^[0-9a-f]{5,40}$/ { hash = $2; |