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

Re: file rename causes history to disappear

From
Junio C Hamano <junkio@cox.net>
Date
Sep 6, 2006, 19:29 UTC
Message-ID
<7vmz9c7pzm.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0609060922110.27779@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 8 quoted lines
> Side note: one thing that I wanted to do, but never got around to, is to 
> allow wildcards in the tree-parsing code. It might be too expensive, but 
> it's still occasionally something I'd like to do:
>
> 	git log -- 'mm/*.c'
>
> to track every single C file in the VM (even if they don't exist right 
> _now_).

I am happy to see we are in agreement. I touched this in the ending note to

	http://article.gmane.org/gmane.comp.version-control.git/26432

The only people who will get burnt by this change are the ones with metacharacters in their pathnames, so it is relative safe change.

I think 'git grep' pathspec code is probably the best to reuse to convert diff-tree family. It knows how to match globs while traversing a tree down without descending into a subtree that would never match, which is what we need for them.

Previous: Linus TorvaldsNext: Randal L. Schwartz
Message 7 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.