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

add a mode that allows crecord to operate on the staging area #53

Open
calestyo opened this issue Dec 16, 2023 · 2 comments
Open

add a mode that allows crecord to operate on the staging area #53

calestyo opened this issue Dec 16, 2023 · 2 comments

Comments

@calestyo
Copy link

Hey.

#52 brought me to the idea that it would indeed be nice, if crecord had a mode where it operates on the stating area.

In that mode it would show all staged changes, and unselecting any would unstage exactly these changes while keeping all others.

Cheers,
Chris.

@calestyo
Copy link
Author

Because of your comment #52 (comment):

Maybe in addition to a --staged option (respectively --cached, e.g. git diff supports both names), it would be nice to have a 3rd mode, where all are shown, staged and unstaged changes, and all can be selected unselected.

Ideally such mode would somehow indicate, whether a line is already staged or not.

@andrewshadura
Copy link
Owner

Actually, there are already undocumented options --staged/--cached and --index. I now remember couldn’t make them do anything sensible, which is why I didn’t document them.

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

2 participants