-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
using crecord
on a repo with already staged changes still shows those within crecord
#52
Comments
Actually, I’d argue that not having any effect when unselecting is the bug. My mental model has always been that crecord shows the difference between what’s committed and what’s in the working tree. I can’t remember why, though 🙂 |
Hmm, most git commands (in that area) typically operate either on the working directory or on the staging area. So if |
I’m not sure how that would work. For example, let’s say the user deselects everything. What should happen in that situation? I don’t think there’s an obvious thing git-crecord could do. |
At least personally, I find it often useful to really consider the staged stuff as "checked that already... it's ready to be commited" ... and from that PoV its nice that it doesn't show up in e.g.
Not exactly sure what you mean now. My idea would be about like this: When just calling
So When calling
|
Well, I think this would go against the idea that git-crecord directly shows the changes it is going to commit. I can try and make that a non-default mode, but I’m not sure it is a good idea by default. |
Hmm I see... so I guess in the end that would mean three modes that could make sense:
|
I think I might have found another (current) bug which would apply to "your" concept (i.e. showing what get's actually committed/staged):
|
Hey.
When using
crecord
on a repo with already staged changes it still shows those withincrecord
, which I guess is unnecessary.Especially, it does not seem to have any effect when the already staged changes are unselected in
crecord
.Cheers,
Chris.
The text was updated successfully, but these errors were encountered: