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

Re: Git log can not show history before rename

From
Jeff King <peff@peff.net>
Date
Jan 31, 2009, 07:04 UTC
Message-ID
<20090131070418.GB3033@coredump.intra.peff.net>
In-Reply-To
<200901302252.18051.trast@student.ethz.ch>
On Fri, Jan 30, 2009 at 10:52:13PM +0100, Thomas Rast wrote:
Show 9 quoted lines
> You might find this useful:
> 
>   $ git config alias.renames
>   !GIT_PAGER="grep -v '^$' | sort -u" git --paginate log --follow --name-only --pretty=format:"" --
> 
> Slow and hacky, but works nice enough in practice.  The intended use
> case is like
> 
>   $ gitk --complicated-rev-options $(git renames git-svn.perl)

Related (but also slow and hacky :) ), it is sometimes nice to see not the whole history of a file, but all of the commits, in the usual log order, that ended up affecting the outcome of a set of content (so not any commits whose work was later overwritten). I posted a short script for it a while back:

  http://article.gmane.org/gmane.comp.version-control.git/99278
-Peff
Previous: Thomas RastNext: Linus Torvalds
Message 7 of 9 in “Git log can not show history before rename”
  1. Frank LiJan 30, 2009
  2. Santi BéjarJan 30, 2009
  3. Jakub NarebskiJan 30, 2009
  4. Frank LiJan 30, 2009
  5. Santi BéjarJan 30, 2009
  6. Thomas RastJan 30, 2009
  7. Jeff KingJan 31, 2009
  8. Linus TorvaldsJan 30, 2009
  9. Linus TorvaldsJan 30, 2009

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.