author | Junio C Hamano <gitster@pobox.com> | |
Mon, 21 Jul 2008 00:53:17 +0000 (17:53 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 21 Jul 2008 00:53:17 +0000 (17:53 -0700) |
* jc/add-addremove:
git-add --all: documentation
git-add --all: tests
git-add --all: add all files
builtin-add.c: restructure the code for maintainability
Conflicts:
builtin-add.c
git-add --all: documentation
git-add --all: tests
git-add --all: add all files
builtin-add.c: restructure the code for maintainability
Conflicts:
builtin-add.c
1 | 2 | |||
---|---|---|---|---|
builtin-add.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc builtin-add.c
index 0800b14ac6b8bcc439f1c51c97f1fbc3ad61b79d,6f5672a6161e9fb1ad8db044e1c318f7594e9e10..fc3f96eaefff91e4e85adb92162716939f0ecd72
--- 1/builtin-add.c
--- 2/builtin-add.c
+++ b/builtin-add.c
for (specs = 0; pathspec[specs]; specs++)
/* nothing */;
seen = xcalloc(specs, 1);
- if (read_cache() < 0)
- die("index file corrupt");
- refresh_index(&the_index, verbose ? 0 : REFRESH_QUIET, pathspec, seen);
+ refresh_index(&the_index, verbose ? REFRESH_SAY_CHANGED : REFRESH_QUIET,
+ pathspec, seen);
for (i = 0; i < specs; i++) {
if (!seen[i])
die("pathspec '%s' did not match any files", pathspec[i]);