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

git-am: Please don't be in "some state" when it fails early

From
USUlrik Sverdrup <ulrik.sverdrup@gmail.com>
Date
Mar 29, 2010, 00:14 UTC
Message-ID
<a1b6cb1b1003281714u50dbcc2bh58c38b50a7b837cd@mail.gmail.com>

If git am fails early, before even trying to apply the first patch, it would be great if am did not leave some state that has to be manually cleaned up (git am --abort). Even if I have a small 'AM' marker in my prompt, it is often missed. And why write state files to .git/ at all, if all it did was to tell me that the index is dirty?

This fixes an inconvenience, and I don't have to wonder (look up) every time if git am --abort will delete all the WIP I had in the way or not.

Ulrik
Message 1 of 1 in “git-am: Please don't be in "some state" when it fails early”
  1. Ulrik SverdrupMar 29, 2010

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.