diff options
| author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-07-14 15:36:06 +0700 | 
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 10:56:09 -0700 | 
| commit | 5c6933d201fab183a9779dca0fe43bf2f1eca098 (patch) | |
| tree | f22da1c0e6a14ef6cc6cc8cfe824bbdb971aeb48 /tree-diff.c | |
| parent | 341003e715c9a7c0332d3f8f08c2f3696a057565 (diff) | |
| download | git-5c6933d201fab183a9779dca0fe43bf2f1eca098.tar.gz | |
pathspec: support :(literal) syntax for noglob pathspec
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-diff.c')
| -rw-r--r-- | tree-diff.c | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/tree-diff.c b/tree-diff.c index 21a50d8ed3..ccf9d7c8fd 100644 --- a/tree-diff.c +++ b/tree-diff.c @@ -202,7 +202,7 @@ static void try_to_follow_renames(struct tree_desc *t1, struct tree_desc *t2, co  	 * path. Magic that matches more than one path is not  	 * supported.  	 */ -	GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP); +	GUARD_PATHSPEC(&opt->pathspec, PATHSPEC_FROMTOP | PATHSPEC_LITERAL);  #if 0  	/*  	 * We should reject wildcards as well. Unfortunately we | 
