git/list[1] front-page[2] threads[3] people[4] search[5] about
 

lost history with directory move?

From
PMPerrin Meyer <perrinmeyer@yahoo.com>
Date
Jan 29, 2008, 01:22 UTC
Message-ID
<66024.57523.qm@web52812.mail.re2.yahoo.com>
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 
Next: Shawn O. Pearce
Message 1 of 2 in “lost history with directory move?”
  1. Perrin MeyerJan 29, 2008
  2. Shawn O. PearceJan 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.