Thread (9 messages) 9 messages, 6 authors, 2016-06-15

Re: Git log can not show history before rename

flat view

From: Frank Li <hidden>
Date: 2016-06-15 22:46:04

Does it conflict with --parents?
When I use --follow and --parents together,  parents can't rewrite.
without --follow, parent can rewrite.


2009/1/30 Santi Béjar [off-list ref]:
2009/1/30 Frank Li [off-list ref]:
quoted
mkdir tt3
cd tt3
git init-db
"git init"
quoted
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
[...]
quoted
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
quoted
--
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help