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

Re: [PATCH] t2203: fix wrong commit command

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Jan 11, 2012, 04:43 UTC
Message-ID
<CACsJy8Dkcj4Vbow29SBW52JKu7bkEWzk_S=rTrG+fdxiD0w7xw@mail.gmail.com>
In-Reply-To
<CACsJy8CjWBRtj3x3guyu-iJeTYxcRriXKbE=Be-rG=Rmesgt=g@mail.gmail.com>

On Wed, Jan 11, 2012 at 11:43 AM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:

Show 12 quoted lines
> 2012/1/11 Ramkumar Ramachandra <artagnon@gmail.com>:
>> Hi Duy,
>>
>> Nguyễn Thái Ngọc Duy wrote:
>>> Add commit message to avoid commit's aborting due to the lack of
>>> commit message, not because there are INTENT_TO_ADD entries in index.
>>
>> Is there any way to differentiate between the two kinds of errors, so
>> that we can avoid this in the future?  Can we grep the error message
>> for something, or inspect the exit status?
>
> commit exits with 1 in both cases, so no.
but grepping error message should work, sorry I hit send too fast
-- 
Duy
Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 4 of 5 in “t2203: fix wrong commit command”
  1. t2203: fix wrong commit commandNguyễn Thái Ngọc Duy, Jan 11, 2012
  2. Ramkumar RamachandraJan 11, 2012
  3. Nguyen Thai Ngoc DuyJan 11, 2012
  4. Nguyen Thai Ngoc DuyJan 11, 2012
  5. Junio C HamanoJan 11, 2012

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.