aboutsummaryrefslogtreecommitdiff
path: root/builtin-rm.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-12-25 03:09:52 -0800
committerJunio C Hamano <junkio@cox.net>2006-12-25 03:29:08 -0800
commite813d50e35653bdb0ce3329f99d1be7fc1c36de5 (patch)
treebc0ef733fe3e1019577a5c0b24b9b165b13bbfa5 /builtin-rm.c
parentd4ada4876d5ab7b271857917231f6006f2160bca (diff)
downloadgit-e813d50e35653bdb0ce3329f99d1be7fc1c36de5.tar.gz
git-e813d50e35653bdb0ce3329f99d1be7fc1c36de5.tar.xz
match_pathspec() -- return how well the spec matched
This updates the return value from match_pathspec() so that the caller can tell cases between exact match, leading pathname match (i.e. file "foo/bar" matches a pathspec "foo"), or filename glob match. This can be used to prevent "rm dir" from removing "dir/file" without explicitly asking for recursive behaviour with -r flag, for example. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-rm.c')
0 files changed, 0 insertions, 0 deletions