git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Git Bug Report: git add --patch > "e" makes keyboard unresponsive

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Apr 24, 2024, 21:54 UTC
Message-ID
<Zil_m_1B0wcLejNH@tapette.crustytoothpaste.net>
In-Reply-To
<CADs5QabwDtUpehNY3hr6BzKyfpp-Ts54TANGkygWPcN3T=OSOg@mail.gmail.com>
On 2024-04-24 at 16:22:12, Dan Demp wrote:
Show 27 quoted lines
> Thank you for filling out a Git bug report!
> Please answer the following questions to help us understand your issue.
> 
> What did you do before the bug happened? (Steps to reproduce your issue)
> 
> When doing a git add --patch, I used the "e" option to edit a diff I
> couldn't split sufficiently. This worked, however when it moved on to
> the next diff, my keyboard became unresponsive.
> 
> What did you expect to happen? (Expected behavior)
> 
> Not make my keyboard unresponsive.
> 
> What happened instead? (Actual behavior)
> 
> I was unable to enter any option to proceed with the patch, and even
> Ctrl+C failed to kill the git command. I ended up having to close my
> Git Bash process and open a new one.
> 
> What's different between what you expected and what actually happened?
> 
> Keyboard unresponsive.
> 
> Anything else you want to add:
> 
> I've reproduced this every subsequent time I've tried this, and it's
> specific to using the "e" option with --patch.

Using the "e" option should invoke your editor and wait until it exits. The only way Git has to know that you're done editing is that the editor process it invokes has exited.

What does "git var GIT_EDITOR" at a Git Bash prompt print? If you have your editor configured to open in an existing editor window, does closing the new editor tab or window that Git causes to be opened fix the problem?

-- 
brian m. carlson (they/them or he/him)
Toronto, Ontario, CA
Previous: Dan DempNext: Junio C Hamano
Message 2 of 12 in “Git Bug Report: git add --patch > "e" makes keyboard unresponsive”
  1. Dan DempApr 24, 2024
  2. brian m. carlsonApr 24, 2024
  3. Junio C HamanoApr 24, 2024
  4. Dan DempApr 25, 2024
  5. Junio C HamanoApr 25, 2024
  6. Dan DempApr 25, 2024
  7. Johannes SchindelinMar 16, 2025
  8. Junio C HamanoMar 17, 2025
  9. Releasing versions on Fridays, was Re: Git Bug Report: git add --patch > "e" makes keyboard unresponsiveJohannes Schindelin, Mar 25, 2025
  10. Junio C HamanoMar 25, 2025
  11. Johannes SchindelinMar 26, 2025
  12. Junio C HamanoMar 26, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.