@matheusbsbs / matheus-bagliano / commits / 16335fdd7a
Fork 0

builtin-commit.c: remove useless check added by faulty cut and paste

2888605c649ccd423232161186d72c0e6c458a48 (builtin-commit: fix partial-commit support) mindlessly cut and pasted from builtin-ls-files.c, and included a part that was meant to exclude redundant path after "ls-files --with-tree" overlayed the HEAD commit on top of the index. This logic does not apply to what git-commit does and should not have been copied, even though it would not hurt. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jan 13, 2008 at 02:38 UTC 16335fdd7ace78a8285ba25fd7a81177a48e7c9b
1 file changed -2
builtin-commit.c
-2
@@ -156,8 +156,6 @@ static int list_paths(struct path_list *list, const char *with_tree,
156
157 for (i = 0; i < active_nr; i++) {
158 struct cache_entry *ce = active_cache[i];
159 - if (ce->ce_flags & htons(CE_UPDATE))
160 - continue;
159 if (!pathspec_match(pattern, m, ce->name, 0))
160 continue;
161 path_list_insert(ce->name, list);