Re: Git log can not show history before rename
- From
- Santi Béjar <santi@agolina.net>
- Date
- Jan 30, 2009, 11:29 UTC
- Message-ID
- <adf1fd3d0901300329y53e46d91xda75799ce1244ddd@mail.gmail.com>
- In-Reply-To
- <1976ea660901300323n384d3650s3bb5a575accb65d1@mail.gmail.com>
2009/1/30 Frank Li <lznuaa@gmail.com>:
> mkdir tt3 > cd tt3 > git init-db
"git init"
Show 11 quoted lines
> touch a.c > git add a.c > git commit -a -m "test1" > > git mv a.c b.c > git commit -a -m "rename" > > modify b.c > git commit -a -m "test2" > > git log -C -M -- b.c
[...]
> I can't get history before rename.
You asked to restrict the search to the b.c path.
You want:
git log --follow -- b.c
Man git-log:
--follow
Continue listing the history of a file beyond renames.HTH, Santi
Show 5 quoted lines
> -- > To unsubscribe from this list: send the line "unsubscribe git" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >