diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2012-10-15 10:26:01 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-10-16 01:58:18 +0400 |
commit | 4c251e5cb5c245ee3bb98c7cedbe944df93e45f4 (patch) | |
tree | aefc5e6b1218874ae0e9559c428844b212de091d /git-merge-one-file.sh | |
parent | 40bbee0ab07d0ee4f21b11d597c878245c1b05a6 (diff) |
wildmatch: make /**/ match zero or more directories
"foo/**/bar" matches "foo/x/bar", "foo/x/y/bar"... but not
"foo/bar". We make a special case, when foo/**/ is detected (and
"foo/" part is already matched), try matching "bar" with the rest of
the string.
"Match one or more directories" semantics can be easily achieved using
"foo/*/**/bar".
This also makes "**/foo" match "foo" in addition to "x/foo",
"x/y/foo"..
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-merge-one-file.sh')
0 files changed, 0 insertions, 0 deletions