summaryrefslogtreecommitdiff
path: root/git-log-describe.awk
diff options
context:
space:
mode:
Diffstat (limited to 'git-log-describe.awk')
-rwxr-xr-xgit-log-describe.awk2
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;