Skip to contentSkip to conversation

Loss of all package history following the recipe rename.

DISCUSSION Chris Larson 2 participants 3 messages Mar 18, 2009 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 11 lines · John Willis

<snip>

After kergoth took the time to point out that I was just looking at this 'the wrong way' and not 'the GIT way' I think the mail can safely be disregarded ;-).

It still does not change the fact that the behavior of 'git log' gave me a real panic moment but at least nothing is lost if your happy to dig (or rather use git log --follow, ok, next time I promise to read the man page before panicking ;-), I am just used to --follow functionality being a default behavior).

Re: default behavior, I'm not entirely certain, but the 'diff.renames' git config parameter seems promising. Try running:
git config diff.renames true

I'm not sure if git log --follow is the same thing as git diff-tree -M, but it probably is, since git log is essentially git rev-list | git diff-tree.

Signature · 7 lines
Chris Larson
clarson at kergoth dot com
clarson at mvista dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Software Engineer
MontaVista Software, Inc.
#2 lore raw
Quoted 14 lines · Chris Larson
Quoted 11 lines · John Willis

<snip>

After kergoth took the time to point out that I was just looking at this 'the wrong way' and not 'the GIT way' I think the mail can safely be disregarded ;-).

It still does not change the fact that the behavior of 'git log' gave me a real panic moment but at least nothing is lost if your happy to dig (or rather use git log --follow, ok, next time I promise to read the man page before panicking ;-), I am just used to --follow functionality being a default behavior).

Quoted 7 lines

Re: default behavior, I'm not entirely certain, but the 'diff.renames' git config parameter seems promising. Try running:
git config diff.renames true

I'm not sure if git log --follow is the same thing as git diff-tree -M, but it probably is, since git log is essentially git rev-list | git diff-tree.

A friend of mine pointed me at this article:

http://markmail.org/message/x7ubgl6wanubwa3g#query:git%20mv%20lost%20history+page:1+mid:pl3pbiuhzu2excg7+state:results

Hopefully, this makes more send to the git gurus.

Philip

#3 lore raw

2009/3/18 Philip Balister <[email protected]>:

Quoted 26 lines
Quoted 17 lines · Chris Larson
Quoted 7 lines · John Willis

<snip>

After kergoth took the time to point out that I was just looking at this 'the wrong way' and not 'the GIT way' I think the mail can safely be disregarded ;-).

Quoted 6 lines

It still does not change the fact that the behavior of 'git log' gave me a
real panic moment but at least nothing is lost if your happy to dig (or rather use git log --follow, ok, next time I promise to read the man page before panicking ;-), I am just used to --follow functionality being a default behavior).

Quoted 7 lines

Re: default behavior, I'm not entirely certain, but the 'diff.renames' git config parameter seems promising.  Try running:
git config diff.renames true

I'm not sure if git log --follow is the same thing as git diff-tree -M, but it probably is, since git log is essentially git rev-list | git diff-tree.

Quoted 5 lines

A friend of mine pointed me at this article:

http://markmail.org/message/x7ubgl6wanubwa3g#query:git%20mv%20lost%20history+page:1+mid:pl3pbiuhzu2excg7+state:results

Hopefully, this makes more send to the git gurus.

Aye, it seems that doing 'git log .' inside the renamed directory won't show the history across the rename boundary, only if you look at the log without specifying a path, or if you specify a single file and use --follow. That's somewhat annoying :\

Side note: if you're doing a git log -p, you probably want to do git log -M -p, so you don't see the add/remove of every file in the diffs for the renames.

Signature · 7 lines
Chris Larson
clarson at kergoth dot com
clarson at mvista dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Software Engineer
MontaVista Software, Inc.