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

git-am annoyance

From
SRSverre Rabbelier <alturin@gmail.com>
Date
Jan 27, 2009, 22:07 UTC
Message-ID
<bd6139dc0901271407i4406d5e6u6db1df9e5a7bdc4f@mail.gmail.com>
Heya,

Observe what happens if, on accident, rather than running a alias (amendall), the 'tab' didn't catch on: $ git am ^C $ # ok, now what do I do? $ git status # On branch checker-caching nothing to commit (working directory clean) $ # looks like everything is ok, great $ # ... some time later $ # same thing happens $ git am cat: /home/sverre/code/Melange/.git/rebase-apply/next: No such file or directory cat: /home/sverre/code/Melange/.git/rebase-apply/utf8: No such file or directory cat: /home/sverre/code/Melange/.git/rebase-apply/keep: No such file or directory cat: /home/sverre/code/Melange/.git/rebase-apply/threeway: No such file or directory cat: /home/sverre/code/Melange/.git/rebase-apply/apply-opt: No such file or directory cat: /home/sverre/code/Melange/.git/rebase-apply/sign: No such file or directory cat: /home/sverre/code/Melange/.git/rebase-apply/next: No such file or directory /usr/local/libexec/git-core//git-am: line 319: test: : integer expression expected /usr/local/libexec/git-core//git-am: line 326: test: : integer expression expected $ # whoops?!

Wouldn't it be nice if "git am" without any arguments just prints a usage message? Either that, or provides you with a way to bail out? Or if it'd clean up after itself so that it doesn't crash?

-- 
Cheers,

Sverre Rabbelier
Next: Junio C Hamano
Message 1 of 4 in “git-am annoyance”
  1. Sverre RabbelierJan 27, 2009
  2. Junio C HamanoJan 27, 2009
  3. Sverre RabbelierJan 27, 2009
  4. Johannes SchindelinJan 27, 2009

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.