Re: ls-tree and wildcards

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

 



Ryan McCue <lists@xxxxxxxxxxxxx> writes:

> Good evening folks,
>
> I'm attempting to grab relevant information for files in a tree
> matching a given pattern with wildcards. The help for ls-tree
> indicates that it can accept a pattern of files to match,...

There are two uses of "pattern" there, and the former is probably OK but
the latter is indeed misleading.  Back when we wrote this command, there
were two distinct "pathspec" families, and ls-tree belong to the one with
"diff" family that did *not* take anything but "leading path pattern" (the
other one from "ls-files" and "grep" family allowed wildcards).  Giving a
wildcard to the command in the "ls-tree/diff" family was never supported.

Later Nguyen and others started working on unifying the two separate
"pathspec" semantics and we are probably halfway there.  Many of the
commands from "diff/log" family now can take wildcard (there may be new
bugs in the codepaths, though), but "ls-tree" has not been converted.
--
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]