diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-07-14 15:35:57 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-15 10:56:09 -0700 |
commit | 827f4d6c218448d58f934c0980b6366407261b74 (patch) | |
tree | d6a874c90a050d79cca5a20d7bd61422eb8687c0 /builtin/commit.c | |
parent | 3efe8e43813c859b78796b985a4fc06c2c153fb4 (diff) | |
download | git-827f4d6c218448d58f934c0980b6366407261b74.tar.gz |
convert common_prefix() to use struct pathspec
The code now takes advantage of nowildcard_len field.
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 '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 3b4dd60312..4ee9ba6c63 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -199,7 +199,7 @@ static int list_paths(struct string_list *list, const char *with_tree, m = xcalloc(1, pattern->nr); if (with_tree) { - char *max_prefix = common_prefix(pattern->raw); + char *max_prefix = common_prefix(pattern); overlay_tree_on_cache(with_tree, max_prefix ? max_prefix : prefix); free(max_prefix); } |