summary refs log tree commit diff
path: root/bin/git-comment.pl
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-08 22:11:15 -0400
committerJune McEnroe <june@causal.agency>2021-09-08 22:11:15 -0400
commitf59aaf2177a8cc097254990ff5d5a8be9aa5faa5 (patch)
treed64c17cbef0040608a3f2ea0204478286ca49f1c /bin/git-comment.pl
parentDocument and install git-comment (diff)
downloadsrc-f59aaf2177a8cc097254990ff5d5a8be9aa5faa5.tar.gz
src-f59aaf2177a8cc097254990ff5d5a8be9aa5faa5.zip
Handle dirty lines in git-comment
Diffstat (limited to '')
-rw-r--r--bin/git-comment.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/git-comment.pl b/bin/git-comment.pl
index c8cd9d40..098f613e 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