summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-08 22:12:50 -0400
committerJune McEnroe <june@causal.agency>2021-09-08 22:17:13 -0400
commitcfebb8be00fab25065fc0578a33835aa421d224e (patch)
tree64959af771a6b55dbbcbd872c0e0c70d2a47f2e3 /bin
parentHandle dirty lines in git-comment (diff)
downloadsrc-cfebb8be00fab25065fc0578a33835aa421d224e.tar.gz
src-cfebb8be00fab25065fc0578a33835aa421d224e.zip
Up default min-repeat to 30 lines
Diffstat (limited to 'bin')
-rw-r--r--bin/git-comment.pl2
-rw-r--r--bin/man1/git-comment.18
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/git-comment.pl b/bin/git-comment.pl
index 098f613e..52145b3b 100644
--- a/bin/git-comment.pl
+++ b/bin/git-comment.pl
@@ -24,7 +24,7 @@ use Git;
 
 my $repo = Git->repository();
 
-my ($all, $minGroup, $minRepeat, $noRepeat) = (0, 2, 20, 0);
+my ($all, $minGroup, $minRepeat, $noRepeat) = (0, 2, 30, 0);
 my $commentStart = $repo->config('comment.start') // "/*";
 my $commentLead = $repo->config('comment.lead') // " *";
 my $commentEnd = $repo->config('comment.end') // " */";
diff --git a/bin/man1/git-comment.1 b/bin/man1/git-comment.1
index 9c9b4cd6..a981f839 100644
--- a/bin/man1/git-comment.1
+++ b/bin/man1/git-comment.1
@@ -71,7 +71,7 @@ The default is 2 lines.
 Avoid repeating a comment
 if it occurred in the last
 .Ar lines .
-The default is 20 lines.
+The default is 30 lines.
 .
 .It Fl \-no-repeat
 Avoid repeating comments entirely.
@@ -86,3 +86,9 @@ git config comment.start '#'
 git config comment.lead '#'
 git config comment.end ''
 .Ed
+.
+.Pp
+Add as many comments as possible:
+.Bd -literal -offset indent
+git comment --all --min-group 1 --min-repeat 1
+.Ed