From 1a5ecb6c6d42d8e0a9284897c90d6047f8ad8842 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Wed, 8 Sep 2021 22:12:50 -0400 Subject: Up default min-repeat to 30 lines --- bin/git-comment.pl | 2 +- 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 -- cgit 1.4.1