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