-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
Wrong patch when staged line by line, compared to other alternatives #1416
Comments
I think this might also be related to the issue of not being able to stage chunks. I haven't yet found the cause of this discrepancy, |
The line staging and hunk staging use different methods and eventually the manual one for linestaging should be used for the hunk staging. The line staging is based off code from nodegit |
Though line staging seems to be having the buggy behaviour here |
like @alexmaco said hung staging has issues too, what I am saying is: rather than fixing hunk staging based on a weak duck-taped solution we should rather migrate it to the line based staging and make sure it is more solid |
This issue has been automatically marked as stale because it has not had any activity half a year. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. |
If no one is actively working on this I can try coming up with a solution; but I have no prior experience with anything related. Also, this seems related: #1804 |
Hi any news on this? |
Describe the bug
Wrong patch when line by line staging compared to using hunks or lazygit or
git add -e
.To Reproduce
Steps to reproduce the behavior:
into_mars
and its bodygit diff --staged
Expected behavior
I expect it to match other commands and tools.
Screenshots
(source code is different from the example above as I recorded these before creating the issue)
Using gitui: https://asciinema.org/a/dL8rEfpOHRQskpa7wmfVTJDQF
Using lazygit: https://asciinema.org/a/z0iSujDQzZO24wr7qXjKNwTf2
Context (please complete the following information):
Additional context
I don't know if this is actually an issue because I don't know much about git patches; but it looks like it corrupts(?) the patch.
The text was updated successfully, but these errors were encountered: