Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for detection of (un)staged changes? #730

Open
mih opened this issue Jun 18, 2024 · 0 comments
Open

Support for detection of (un)staged changes? #730

mih opened this issue Jun 18, 2024 · 0 comments

Comments

@mih
Copy link
Member

mih commented Jun 18, 2024

ATM we run git diff-index without --cached. This gives us all changes. In most cases we can tell if something is staged, because a non-None gitsha property is reported.

The one (?) exception are deletions. These have no gitsha property (of course), and only a git diff-index --cached would reveal their potential unstaged nature.

This appears to be the last aspect that prevent next-status from reporting index state. Here is what this looks like in a local draft (the plus-character indicates "staged"):

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant