-
Notifications
You must be signed in to change notification settings - Fork 5
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
crash on git diff #63
Comments
removing the |
Confirmed, thanks for the clear repro case! |
I want to provide an update. I tried to repro this by creating a delete-edit conflict and rebasing, result below. But Did you edit the repro example in any way?
No matter whether the counts are off due to bugs in My primary focus right now is for diff --cc README.md
index 3a1fc52,5245317..0000000
--- README.md
+++ README.md
@@@ -1,2 -1,1 +1,6 @@@
++<<<<<<< HEAD
+initial
+main
++=======
+ Branch
++>>>>>>> 28d4562 (Branch commit)
* Unmerged path pain.txt |
the only thing i changed was the actual filename to foo.yaml, which shouldn't affect it at all (and i could still repro with the foo) |
Is there any way for me to repro this Instructions like "Clone this repo, add this remote, run these commands"? It's more likely that me / riff is wrong than Git, but I can't understand this diff. Being able to experiment with Also, what does AnalysisFirst, ✅ Then, a So my understanding is that
❌ This adds up to 57 lines. But the header says 60. Just by counts, the difference here matches the number of And what confuses me even more is that I have verified this logic with other diffs, also from |
unfortunately that repo is private, and that was from the middle of a rebase where some entangled commits were reordered, so I don't think I'll be able to easily recreate a reproducing repo state for you
|
Since I don't understand it and I can't reproduce it, I would like to at least have I'm thinking that rather than crashing, if
Actually tracking this down and understanding it would be better obviously, but if I can't then I'll have to go for the next best thing... |
I'll try to remember to tar up the repo the next time it happens |
Would you be OK with me sending your diff to the You said the repo is private so I wanted to ask you first. |
yes, that's fine. nothing in the diff is private (i made sure of that already), but I can't say the same about the rest of the repo :) |
Junio C Hamano confirms Git seems to be in the wrong here:
But since upstream won't look into it and I can't repro it the new error handling that I just merged will count as the fix for this. |
when doing git diff during a rebase with unmerged conflicts, I was able to crash riff. It reproduces outside of git if copying the offending diff to a file and rendering that.
panic message:
diff that caused the crash:
The text was updated successfully, but these errors were encountered: