feat(git-summary): add stashed count alongside uncommitted#1192
Open
feat(git-summary): add stashed count alongside uncommitted#1192
Conversation
Contributor
Author
TODO if necessaryIf this PR is of interest for the maintainers, I can update the documentation/manpage to explicitly state that we check for stashes and to update the examples with the new output. |
Collaborator
|
Sounds good to me. @spacewander what do you think? |
spacewander
reviewed
Jun 6, 2025
| } | ||
|
|
||
| stashed_changes_count() { | ||
| git stash list | wc -l |
Collaborator
There was a problem hiding this comment.
Now the output is:
commits : 1802
files : 345
uncommitted : 0
stashed : 0
There is an extra tab before the 0.
Could you remove the tab prefix of the output? Also to the one in uncommitted_changes_count.
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.
Problem
In
githelpers, when querying the status of a repository, it is often desired or expected to see if there is one or more stash(es) inside a repository alongside uncommitted changes or files (or at least, to have the choice to do so).Solution
Add a new column (after uncommitted, before author for long output style, before branch name for tabular or oneline output style) counting the number of stash(es) inside the repository.