diff --git a/bin/git-standup b/bin/git-standup index 538ae0b..9a0c636 100755 --- a/bin/git-standup +++ b/bin/git-standup @@ -5,7 +5,7 @@ usage() { cat <] [-w ] [-d ] [-m ] [-g] [-h] [-f] [-B] + git standup [-a ] [-w ] [-d ] [-m ] [-g] [-h] [-f] [-B] [-n \fR .P Display the commits in branch groups\. . +.P +\-n number\-of\-commits +. +.P +Limit the number of commits displayed per group\. By default, the limitation is applied in the repository level\. For example, if you have 3 repositories under the current directory, \fBgit standup \.\.\. \-n 1\fR will show you 3 commits at most\. When \fB\-B\fR is specific, the limitation is applied in the branch level\. For instance, if each of your 3 repositories have 2 branches, \fBgit standup \.\.\. \-B \-n 1\fR will display 6 commits at most\. +. .SH "EXAMPLES" This shows your commits since yesterday: . diff --git a/man/git-standup.html b/man/git-standup.html index 6fc9320..116e9c6 100644 --- a/man/git-standup.html +++ b/man/git-standup.html @@ -76,7 +76,7 @@

SYNOPSIS

-

git-standup [-a author] [-m depth] [-d days ago] [-D date format] [-g] [-L] [-f] [-B]

+

git-standup [-a author] [-m depth] [-d days ago] [-D date format] [-g] [-L] [-f] [-B] [-n number of commits]

git-standup -h

@@ -126,6 +126,16 @@ This interface is deprecated now, and please avoid to use it!

Display the commits in branch groups.

+

-n number-of-commits

+ +

Limit the number of commits displayed per group. +By default, the limitation is applied in the repository level. For example, if you +have 3 repositories under the current directory, git standup ... -n 1 will +show you 3 commits at most. +When -B is specific, the limitation is applied in the branch level. For instance, +if each of your 3 repositories have 2 branches, git standup ... -B -n 1 will +display 6 commits at most.

+

EXAMPLES

This shows your commits since yesterday:

diff --git a/man/git-standup.md b/man/git-standup.md index 094742f..671ab77 100644 --- a/man/git-standup.md +++ b/man/git-standup.md @@ -3,7 +3,7 @@ git-standup(1) -- Recall the commit history ## SYNOPSIS -`git-standup` [-a author] [-m depth] [-d days ago] [-D date format] [-g] [-L] [-f] [-B] +`git-standup` [-a author] [-m depth] [-d days ago] [-D date format] [-g] [-L] [-f] [-B] [-n number of commits] `git-standup` -h @@ -53,6 +53,16 @@ This interface is deprecated now, and please avoid to use it! Display the commits in branch groups. +-n number-of-commits + +Limit the number of commits displayed per group. +By default, the limitation is applied in the repository level. For example, if you +have 3 repositories under the current directory, `git standup ... -n 1` will +show you 3 commits at most. +When `-B` is specific, the limitation is applied in the branch level. For instance, +if each of your 3 repositories have 2 branches, `git standup ... -B -n 1` will +display 6 commits at most. + ## EXAMPLES This shows your commits since yesterday: