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

Re: [PATCH] Add abbreviated commit hash to rebase conflict message

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 6, 2011, 20:27 UTC
Message-ID
<7vaa89573r.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAGdFq_j7NxojZ+82s0GJ8ZF0oyd5sH8t0kcMOTQGtKbASXqYTA@mail.gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
Show 11 quoted lines
> On Sun, Nov 6, 2011 at 05:14, Junio C Hamano <gitster@pobox.com> wrote:
>> I am puzzled, but that cannot be true. The existing message uses $msgnum
>> and $FIRSTLINE but does not use $commit because it does not necessarily
>> exist.
>>
>> What a value would the variable contain when I am applying your original
>> patch message using "git am -s" (or "git am -s3")?
>
> Aaah, I understand the concern you raise now. In that case a spurious
> [] would be printed, which I agree is less than desirable. Would
> checking 'if test -n $commit' be sufficient?
In what situation does it make sense to say "It came from _this_ commit"?

I think there is a separate variable that allows any part of the script if we are being run as a backend of rebase or not, and that is the condition you are looking for.

Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 6 of 9 in “Add abbreviated commit hash to rebase conflict message”
  1. Add abbreviated commit hash to rebase conflict messageSverre Rabbelier, Nov 5, 2011
  2. Junio C HamanoNov 6, 2011
  3. Sverre RabbelierNov 6, 2011
  4. Junio C HamanoNov 6, 2011
  5. Sverre RabbelierNov 6, 2011
  6. Junio C HamanoNov 6, 2011
  7. Sverre RabbelierNov 6, 2011
  8. Junio C HamanoNov 7, 2011
  9. Junio C HamanoNov 9, 2011

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.