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

Re: file rename causes history to disappear

From
Linus Torvalds <torvalds@osdl.org>
Date
Sep 6, 2006, 19:06 UTC
Message-ID
<Pine.LNX.4.64.0609061205100.27779@g5.osdl.org>
In-Reply-To
<edn5dd$c4s$2@sea.gmane.org>
On Wed, 6 Sep 2006, Jakub Narebski wrote:
Show 5 quoted lines
> 
> But --follow=<filename> with <pathspec> can be useful, e.g. when <pathspec> 
> is a directory (or, perhaps in the future, glob), which would mean "follow
> the contents indicated in starting hash by <filename>, and stop following
> when it falls out outside given <pathspec>, in our case given directory".

Yes, that would indeed make sense. The pathspec ends up being kept as a "limiter", and basically tells you what the "context" for following is allowed to be.

Color me convinced.
		Linus
Previous: Jakub NarebskiNext: Junio C Hamano
Message 14 of 16 in “file rename causes history to disappear”
  1. Jeff GarzikSep 6, 2006
  2. Timo HirvonenSep 6, 2006
  3. Linus TorvaldsSep 6, 2006
  4. Jeff GarzikSep 6, 2006
  5. Linus TorvaldsSep 6, 2006
  6. Linus TorvaldsSep 6, 2006
  7. Junio C HamanoSep 6, 2006
  8. Randal L. SchwartzSep 6, 2006
  9. Junio C HamanoSep 7, 2006
  10. Alex RiesenSep 7, 2006
  11. Jakub NarebskiSep 6, 2006
  12. Linus TorvaldsSep 6, 2006
  13. Jakub NarebskiSep 6, 2006
  14. Linus TorvaldsSep 6, 2006
  15. Junio C HamanoSep 6, 2006
  16. Jakub NarebskiSep 6, 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.