git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* lost history with directory move?
@ 2008-01-29  1:22 Perrin Meyer
  2008-01-29  2:21 ` Shawn O. Pearce
  0 siblings, 1 reply; 2+ messages in thread
From: Perrin Meyer @ 2008-01-29  1:22 UTC (permalink / raw)
  To: git



I'm confused about history and directory renaming. Where did my history go? 

I have a git repo with a doc/ directory, which I renamed to Documentation/ 

$ mv doc/ Documentation/
$ git commit -a 
where I see a lot of deletes
$ git push

$ git add Documentation/
$ git commit -a
and I see that a all my doc files added, as expected. 
$ git push 

But when I got to look at the history of the Documentation/ directory

$ git log Documentation/

I only see one commit message 

even if I do a 

$ git log --follow Documentation/

I don't see my history.

Even if I try a single file

$ git log --follow README

I only see the single rename commit, not any history. 

What did I do wrong?  

I'm guessing, in hindsight, that I probably should have done

$ mv doc/ Documentation/
$ git add Documentation/
$ git commit -a 

but is there anyway to get my history back given what I have done? 

Thanks for the help.  I'm using git version 1.5.3.8 

Perrin Meyer 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-01-29  2:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-29  1:22 lost history with directory move? Perrin Meyer
2008-01-29  2:21 ` Shawn O. Pearce

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).