Re: Git log can not show history before rename
- From
Thomas Rast <trast@student.ethz.ch>
- Date
- Jan 30, 2009, 21:52 UTC
- Message-ID
- <200901302252.18051.trast@student.ethz.ch>
- In-Reply-To
- <adf1fd3d0901300449x7f6a2f5bq920068b46994c92e@mail.gmail.com>
Santi Béjar wrote:
Show 8 quoted lines
> 2009/1/30 Frank Li <lznuaa@gmail.com>: > > Does it conflict with --parents? > > When I use --follow and --parents together, parents can't rewrite. > > without --follow, parent can rewrite. > > I think there are no obvious reasons to conflict and they could work > together, but as Jakub just said, --follow is quite new and only works > well with simple history and simple cases.
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)
--
Thomas Rast
trast@{inf,student}.ethz.ch