summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e923eae)
raw | patch | inline | side by side (parent: e923eae)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Feb 2010 20:30:41 +0000 (12:30 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 17 Feb 2010 20:30:41 +0000 (12:30 -0800) |
Noticed by James Pickens
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | patch | blob | history |
diff --git a/builtin-commit.c b/builtin-commit.c
index 55676fd874466c70445e81c69cf397cd01380aaf..bb97000320534a0946673edefafdafc74d27d259 100644 (file)
--- a/builtin-commit.c
+++ b/builtin-commit.c
if (*argv)
s.pathspec = get_pathspec(prefix, argv);
- read_cache();
+ read_cache_preload(s.pathspec);
refresh_index(&the_index, REFRESH_QUIET|REFRESH_UNMERGED, s.pathspec, NULL, NULL);
s.is_initial = get_sha1(s.reference, sha1) ? 1 : 0;
s.in_merge = in_merge;