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

git record -i doesn't work after git add -N #1247

Open
JaniM opened this issue Feb 21, 2024 · 3 comments
Open

git record -i doesn't work after git add -N #1247

JaniM opened this issue Feb 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@JaniM
Copy link

JaniM commented Feb 21, 2024

Description of the bug

I often want to stage a part of a new file when reconstructing commits. git record -i doesn't recognize untracked files, but it also doesn't launch if I have added, but not staged, a file.

> echo foo > foo
> git add -N foo
> git record -i
Cannot select changes interactively while there are already staged changes.
Either commit or unstage your changes and try again. Aborting.

Expected behavior

The record TUI should launch and show the added file.

Actual behavior

The TUI doesn't launch.

Version of rustc

No response

Automated bug report

No response

Version of git-branchless

git-branchless-opts 0.8.0

Version of git

git version 2.43.1

@JaniM JaniM added the bug Something isn't working label Feb 21, 2024
@claytonrcarter
Copy link
Collaborator

Thanks for the report. I think that git amend has a related issue being tracked in #356

@arxanas
Copy link
Owner

arxanas commented Feb 23, 2024

@JaniM if you want to fix it, there are details in the issue @claytonrcarter linked.

@JaniM
Copy link
Author

JaniM commented Feb 25, 2024

That could be fun. I'll give it a spin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants