-
Notifications
You must be signed in to change notification settings - Fork 405
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
🐛 "capacity overflow" with git add -p
#1908
Comments
Hi @rfwroo. Hm. Can you give platform details, and git version? Does it really only occur with those two commands, not with (And thanks for informing me of the existence of |
I've only observed it with the
This is consistent for me: git clone https://git.netflux.io/rob/dotfiles
cd dotfiles
git checkout c39ec29b21751744a645b9bef5ba06d5fabee9bf
git checkout -p HEAD~3 # triggers the panic, note that HEAD~2 does not |
Do you have a syntax theme set? I am trying to figure out how |
Yes, all directly from the terminal.
Aha. Not exactly but I do have these long-forgotten lines in my config. Removing them seems to avoid the panic. 🎉 Not sure if that points towards a bug still or just some dodgy config? |
But also, no!
No, the config should be fine, that is a very subtle bug. Zero lines are rarely styled (but, I already like it), so very few people hit this bug. You may have noticed that the zero-background always stopped column 80, unlike the plus/minus lines. Thank you for the excellent reproducer, should be fixed in #1916. I am also working on an easier way to gather more details on what exactly lead to a crash in #1917. |
Hello! Following on from #320, I seem to still be experiencing the issue (or a very similar issue) in 0.18.2.
This seems to happen with any invocation ofgit add -p
orgit checkout -p
, even with a trivial diff.Update: this only affects
git add -p
andgit checkout -p
(and possibly other commands with-p
flags) with certain diffs, see below.With
--no-pager
the crash still occurs.Please let me know if I can provide any more context.
The text was updated successfully, but these errors were encountered: