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

Re: [PATCH] log --reflog: use dwim_log

From
Junio C Hamano <junkio@cox.net>
Date
Feb 9, 2007, 03:43 UTC
Message-ID
<7vtzxwuhb1.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0702090127510.22628@wbgn013.biozentrum.uni-wuerzburg.de>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> Since "git log origin/master" uses dwim_log() to match
> "refs/remotes/origin/master", it makes sense to do that for
> "git log --reflog", too.
This is a bit sad.

When there is remotes/origin/HEAD symref that points at remotes/origin/master (and usually there is, in a repository initialized with the current git-clone), you can say "git log origin". Even with this patch, I do not think dwim_log would allow you to say "git log -g origin" to mean "git log -g origin/master".

Previous: Johannes SchindelinNext: Junio C Hamano
Message 12 of 13 in “[BUG] Empty reflogs and "git log -g"”
  1. Santi BéjarFeb 8, 2007
  2. Santi BéjarFeb 8, 2007
  3. Johannes SchindelinFeb 8, 2007
  4. Nicolas PitreFeb 8, 2007
  5. Johannes SchindelinFeb 8, 2007
  6. Johannes SchindelinFeb 8, 2007
  7. Jakub NarebskiFeb 8, 2007
  8. Johannes SchindelinFeb 8, 2007
  9. Junio C HamanoFeb 8, 2007
  10. for_each_reflog_ent: be forgiving about missing messageJohannes Schindelin, Feb 8, 2007
  11. log --reflog: use dwim_logJohannes Schindelin, Feb 9, 2007
  12. Junio C HamanoFeb 9, 2007
  13. Junio C HamanoFeb 9, 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.