Git Status Idea #1372
philipbordallo
started this conversation in
General
Git Status Idea
#1372
Replies: 1 comment
-
Thanks for the suggestion Philip! 😄 I can definitely see how the git status module can get noisy and overwhelming. There's certainly room to simplify the git status module to show less details, and for what it's worth, Starship can be considerably faster if we could stop checking for git status as soon as a single file was in one of these states. 🚀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been using starship for a while now and it's been great. But one thing I've noticed is the git status symbols are a bit overwhelming. There is a lot of them, and their meaning and reason for showing up isn't always clear.
While I was looking to customize them/clean things up I ran into #1371 and it made me realize is there a benefit to having that level of detail? Do I care whether something was modified, deleted, or renamed as well as all the other information? Or is it more important to know if something has changed, is untracked, has a conflict, is staged, has been stashed or is in-sync with the remote?
Idea
changed
state to handle all modifications and deletions in the working directory.staged
state to included modifications, deletions and renames that have been staged.deleted
andrenamed
states.This would mean that the states for git status would be:
changed
untracked
conflicted
staged
stashed
ahead
behind
diverged
Examples
Given these files:
And these sequential actions taken:
changed
.changed
anduntracked
.changed
,staged
, anduntracked
staged
This way at a quick glance you can see what state git is in and if more information needs to be gleaned (did these changes include a deletion or was it a rename?) running
git status
can give you more details.Beta Was this translation helpful? Give feedback.
All reactions