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

Re: Joining Repositories

From
Linus Torvalds <torvalds@osdl.org>
Date
Jan 18, 2006, 23:15 UTC
Message-ID
<Pine.LNX.4.64.0601181513030.3240@g5.osdl.org>
In-Reply-To
<Pine.LNX.4.64.0601181414530.3240@g5.osdl.org>
On Wed, 18 Jan 2006, Linus Torvalds wrote:
Show 6 quoted lines
> 
> As an example, let's say that you have a git repository that has had a 
> file called "A" some time in the past. That file gets renamed to B, and 
> then gets renamed back again to A. The old "git-rev-list" would show two 
> commits commits: the commit that renames B to A (because it changes A) 
> _and_ as its parent the commit that renames A to B (because it changes A).

Btw, in case somebody doesn't see what's wrong with that (because those two commits happen to be the only ones that matter), let's point out that the file may have changed while it was called "B". So to do annotation, we really need to _stop_ following the filename, start following the previous one.

Now, the logic to do that could have been in the "annotate" parts, but the decision to stop following the chain actually makes sense as part of git-rev-list, since it does the tree difference tracking anyway.

		Linus
Previous: Linus TorvaldsNext: Junio C Hamano
Message 21 of 25 in “Joining Repositories”
  1. Mathias WaackJan 18, 2006
  2. Petr BaudisJan 18, 2006
  3. Petr BaudisJan 18, 2006
  4. Mathias WaackJan 18, 2006
  5. Petr BaudisJan 18, 2006
  6. Mathias WaackJan 19, 2006
  7. Junio C HamanoJan 19, 2006
  8. Andreas EricssonJan 18, 2006
  9. Ryan AndersonJan 18, 2006
  10. Petr BaudisJan 18, 2006
  11. Ryan AndersonJan 18, 2006
  12. Linus TorvaldsJan 18, 2006
  13. Petr BaudisJan 18, 2006
  14. Junio C HamanoJan 18, 2006
  15. Linus TorvaldsJan 18, 2006
  16. Junio C HamanoJan 18, 2006
  17. Linus TorvaldsJan 18, 2006
  18. Junio C HamanoJan 18, 2006
  19. Linus TorvaldsJan 18, 2006
  20. Linus TorvaldsJan 18, 2006
  21. Linus TorvaldsJan 18, 2006
  22. Junio C HamanoJan 19, 2006
  23. Petr BaudisJan 19, 2006
  24. Ryan AndersonJan 18, 2006
  25. H. Peter AnvinJan 18, 2006

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.