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

Re: git rebase -i and the reflog

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 10, 2010, 22:23 UTC
Message-ID
<7v3a183f3q.fsf@alter.siamese.dyndns.org>
In-Reply-To
<fabb9a1e1002101419x40844a42s21108aaa849430c1@mail.gmail.com>
Sverre Rabbelier <srabbelier@gmail.com> writes:
> I use "git rebase -i" a lot, and as a result the output from 'git log
> -g' and 'git reflog' is a tad messy. That is, it's (afaik) not
> possible to check that after my rebasing did not mess things up using
> something like 'git diff HEAD@{1}'.

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.

Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 2 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.