Re: file rename causes history to disappear

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Linus Torvalds <torvalds@xxxxxxxx> writes:

> 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.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]