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

Re: [PATCH 3/3] show-branch --reflog: show the reflog message at the top.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 20, 2007, 00:42 UTC
Message-ID
<Pine.LNX.4.63.0701200135500.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7v4pqmczqa.fsf@assigned-by-dhcp.cox.net>
Hi,
On Fri, 19 Jan 2007, Junio C Hamano wrote:
> I still am having a hard time trying to explain what these
> commands would do, and why they might be useful:
> 
> 	git-log --walk-reflogs master..next

I had less problems explaining that when walking fell back to walking the parents.

It could even make sense to walk reflogs instead of parents _only_ for interesting commits (i.e. "next" in your example, but not "master"), so that you can ask for commits made to a certain in your local repository, which are not (yet) in some other branch.

Which would include commits which were ammended (and thus are no longer in the ancestry of the branch).

Of course, you could always say: if you ask for strange things, you will get strange things.

> 	git-log --walk-reflogs master -- Documentation/
Ah, but that is way easier!

For example: I _know_ that something worked some time ago, and it was probably in git.c. So ask "git-log --walk-reflogs -- git.c", and you will soon find out where to start bisecting.

> On the other hand I can understand why this might be useful:
> 
> 	git-log --walk-reflogs master

I like it already. But of course, I also like your patch saying "3 days ago" instead of a date.

Ciao, Dscho

Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 11 in “show-branch --reflog: show the reflog message at the top.”
  1. 3/3 show-branch --reflog: show the reflog message at the top.Junio C Hamano, Jan 19, 2007
  2. Johannes SchindelinJan 20, 2007
  3. Junio C HamanoJan 20, 2007
  4. Johannes SchindelinJan 20, 2007
  5. Junio C HamanoJan 20, 2007
  6. Johannes SchindelinJan 20, 2007
  7. Junio C HamanoJan 20, 2007
  8. --walk-reflogs: disallow uninteresting commitsJohannes Schindelin, Jan 20, 2007
  9. Junio C HamanoJan 20, 2007
  10. Johannes SchindelinJan 20, 2007
  11. Junio C HamanoJan 20, 2007

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.