diff options
author | June McEnroe <june@causal.agency> | 2021-09-08 22:12:50 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-08 22:17:13 -0400 |
commit | 1a5ecb6c6d42d8e0a9284897c90d6047f8ad8842 (patch) | |
tree | 6d631b8a0001a9c596e7ddb947fbe5337a7a0f11 | |
parent | Handle dirty lines in git-comment (diff) | |
download | src-1a5ecb6c6d42d8e0a9284897c90d6047f8ad8842.tar.gz src-1a5ecb6c6d42d8e0a9284897c90d6047f8ad8842.zip |
Up default min-repeat to 30 lines
Diffstat (limited to '')
-rw-r--r-- | bin/git-comment.pl | 2 | ||||
-rw-r--r-- | bin/man1/git-comment.1 | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/bin/git-comment.pl b/bin/git-comment.pl index 01f7171d..9efebf83 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 |