diff options
author | June McEnroe <june@causal.agency> | 2021-09-08 22:11:15 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-08 22:11:15 -0400 |
commit | 5908b0ae469e5d20d6b05eb3aabf2ea7b3d65311 (patch) | |
tree | 964f0b2f64a5e7d77e078a2a112406fefce2952a /bin | |
parent | Document and install git-comment (diff) | |
download | src-5908b0ae469e5d20d6b05eb3aabf2ea7b3d65311.tar.gz src-5908b0ae469e5d20d6b05eb3aabf2ea7b3d65311.zip |
Handle dirty lines in git-comment
Diffstat (limited to 'bin')
-rw-r--r-- | bin/git-comment.pl | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/git-comment.pl b/bin/git-comment.pl index d4058804..01f7171d 100644 --- a/bin/git-comment.pl +++ b/bin/git-comment.pl @@ -61,6 +61,7 @@ while (<$pipe>) { chomp; if (/^([[:xdigit:]]+) \d+ (\d+) (\d+)/) { ($commit, $nr, $group, $printed) = ($1, $2, $3, 0); + $abbrev{$commit} = 'dirty' if $commit =~ /^0+$/; next if $abbrev{$commit}; my @body = $repo->command( 'show', '--no-patch', '--pretty=format:%h%n%b', $commit |