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

Re: Pressing Ctrl-C during 'git checkout <branch-name>' messes up the repository

From
KKKonstantin Khomoutov <kostix@bswap.ru>
Date
Jul 17, 2023, 09:18 UTC
Message-ID
<20230717091849.z7bvqbygbpg4sluk@carbon>
In-Reply-To
<ZLM4sTUjBQt4QMfG@tapette.crustytoothpaste.net>
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> I would disagree here.  When the user has hit Ctrl-C, they want to
> interrupt the operation.  That's literally why a SIGINT (interrupt)
> signal is sent.

Just a fun remark: that "INT" in SIGINT stands for "INTeractive attention", and IIUC, relabeling it as a request for interruption in the public consciousness is likely the result of that signal having been left in its default disposition in most of the software which was in use then, which naturally made the signal work as a termination signal ;-)

Previous: YuriNext: Andreas Schwab
Message 5 of 6 in “Pressing Ctrl-C during 'git checkout <branch-name>' messes up the repository”
  1. YuriJul 15, 2023
  2. brian m. carlsonJul 16, 2023
  3. Junio C HamanoJul 16, 2023
  4. YuriJul 17, 2023
  5. Konstantin KhomoutovJul 17, 2023
  6. Andreas SchwabJul 17, 2023

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.