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

Re: [RFC/PATCH] rebase -i: use full onto sha1 in reflog

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 9, 2012, 17:48 UTC
Message-ID
<7vwr18nehe.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CAOeW2eESQyT0xzy8KjAdhgr45MGosY86cQOy2VsN6TtJqeEYjA@mail.gmail.com>
Martin von Zweigbergk <martin.von.zweigbergk@gmail.com> writes:
Show 18 quoted lines
> On Thu, Aug 9, 2012 at 9:05 AM, Michael J Gruber
> <git@drmicha.warpmail.net> wrote:
>> diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
>> index 0d2056f..dbc9de6 100644
>> --- a/git-rebase--interactive.sh
>> +++ b/git-rebase--interactive.sh
>> @@ -573,7 +573,7 @@ do_next () {
>>         newhead=$(git rev-parse HEAD) &&
>>         case $head_name in
>>         refs/*)
>> -               message="$GIT_REFLOG_ACTION: $head_name onto $shortonto" &&
>> +               message="$GIT_REFLOG_ACTION: $head_name onto $onto" &&
>
> After this patch, is there any point in the
>
>  shortonto=$(git rev-parse --short $onto) &&
>
> line just before the context? (I can't see any.)

Good point; the function always exits after reaching this point, so it should be safe to omit it.

Previous: Martin von ZweigbergkNext: Michael J Gruber
Message 3 of 5 in “rebase -i: use full onto sha1 in reflog”
  1. rebase -i: use full onto sha1 in reflogMichael J Gruber, Aug 9, 2012
  2. Martin von ZweigbergkAug 9, 2012
  3. Junio C HamanoAug 9, 2012
  4. [PATCHv2] rebase -i: use full onto sha1 in reflogMichael J Gruber, Aug 10, 2012
  5. Junio C HamanoAug 9, 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.