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

Re: git rebase -i and the reflog

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Feb 10, 2010, 22:26 UTC
Message-ID
<fabb9a1e1002101426p41cba90dw5b3d4afdfb157b5c@mail.gmail.com>
In-Reply-To
<7v3a183f3q.fsf@alter.siamese.dyndns.org>
Heya,
On Wed, Feb 10, 2010 at 23:23, Junio C Hamano <gitster@pobox.com> wrote:
> Yes and no.  I too suffer from it but only when I rebase a detached HEAD
> state.  If you rebased a topic, "git diff topic@{1}" (or "git diff @{1}")
> would give you what you want.

Ah, mhh, so the reason I'm seeing this cruft is that I'm using 'HEAD@' instead of 'topic@'. It only makes sense that HEAD's reflog includes every commit, and a topic's reflog includes just that topics. Thanks for the quick reply, this'll make my life a bunch easier :).

-- 
Cheers,

Sverre Rabbelier
Previous: Junio C HamanoNext: Nicolas Pitre
Message 3 of 5 in “git rebase -i and the reflog”
  1. Sverre RabbelierFeb 10, 2010
  2. Junio C HamanoFeb 10, 2010
  3. Sverre RabbelierFeb 10, 2010
  4. Nicolas PitreFeb 11, 2010
  5. Patrick SudoweFeb 11, 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.