summaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2012-01-14 16:23:22 +0700
committerJunio C Hamano <gitster@pobox.com>2012-01-14 18:39:04 -0800
commit8c69c1f92eb79a597225814781fdf1ab4be26758 (patch)
treee72d3934616105496df528e38379931ff6ffcb91 /tree-walk.c
parent6db5c6e43dccb380ca6e9947777985eb11248c31 (diff)
downloadgit-8c69c1f92eb79a597225814781fdf1ab4be26758.tar.gz
Document limited recursion pathspec matching with wildcards
It's actually unlimited recursion if wildcards are active regardless --max-depth 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 'tree-walk.c')
-rw-r--r--tree-walk.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tree-walk.c b/tree-walk.c
index f82dba6a1f..492c7cd744 100644
--- a/tree-walk.c
+++ b/tree-walk.c
@@ -661,6 +661,9 @@ match_wildcards:
/*
* Match all directories. We'll try to match files
* later on.
+ * max_depth is ignored but we may consider support it
+ * in future, see
+ * http://thread.gmane.org/gmane.comp.version-control.git/163757/focus=163840
*/
if (ps->recursive && S_ISDIR(entry->mode))
return entry_interesting;