Closed
Conversation
Now that --no-config and --no-color are now both valid options, the shorter -n option is no longer obvious.
This option specifies the number of commits to show in the output (`<N>`).
spacewander
requested changes
Jun 3, 2019
| echon "## Local Branches:" | ||
| echon "$(local_branches)" | ||
| if [[ "${max_count}" -ne 1 ]]; then | ||
| header="Top ${max_count} Commits:" |
Collaborator
There was a problem hiding this comment.
IMHO, Top N Commits: is vague. Actually we show the last N commits in the current branch.
| $ git info --no-color | ||
| ``` | ||
|
|
||
| You can select the number of previous commits to show by using the `-c <N>` option (where `<N>` is any integer). It is important to note, however, that `-c` **must be the FIRST option** you pass to `git info`. For example: |
Collaborator
There was a problem hiding this comment.
We can use a while loop to get rid of this limitation, like: https://github.com/tj/git-extras/blob/master/bin/git-release#L31
|
This PR was closed because it has been stalled for 365 days with no activity. Feel free to make a new PR if you wish to continue |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added:
--no-coloroption)-c <N>option which allows the user to specify the number of commits to show in the output