diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-01-25 17:13:11 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-25 17:13:11 -0800 |
commit | d64d4835b83669d5c9c8ce1989859efa803874db (patch) | |
tree | 6748e48171e74bb97dc56efa9e7d133a7674e1a2 /builtin-commit.c | |
parent | f18e6bef23809d2823c1a687f375b22c6af0e735 (diff) | |
parent | 0b50922abffb82c473182b03eb5bb47a978cceac (diff) | |
download | git-d64d4835b83669d5c9c8ce1989859efa803874db.tar.gz |
Merge branch 'cb/add-pathspec'
* cb/add-pathspec:
remove pathspec_match, use match_pathspec instead
clean up pathspec matching
Diffstat (limited to 'builtin-commit.c')
-rw-r--r-- | builtin-commit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-commit.c b/builtin-commit.c index 7aaa5304c7..d6a3a6203a 100644 --- a/builtin-commit.c +++ b/builtin-commit.c @@ -166,7 +166,7 @@ static int list_paths(struct string_list *list, const char *with_tree, struct cache_entry *ce = active_cache[i]; if (ce->ce_flags & CE_UPDATE) continue; - if (!pathspec_match(pattern, m, ce->name, 0)) + if (!match_pathspec(pattern, ce->name, ce_namelen(ce), 0, m)) continue; string_list_insert(ce->name, list); } |