diff options
| author | Junio C Hamano <gitster@pobox.com> | 2010-01-20 20:28:50 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2010-01-20 20:28:50 -0800 |
| commit | e98f80f50bf9b78aab8cea6184fd708259d0c3b3 (patch) | |
| tree | 71457289ee60e6a80b14ab867c987b16f637eb3b /builtin-rm.c | |
| parent | add0951ab0bee43b5f634d1be68a7a80f627c18f (diff) | |
| parent | 4e1a7baa2e466afded9ff50b9a4539b24dbd3584 (diff) | |
| download | git-e98f80f50bf9b78aab8cea6184fd708259d0c3b3.tar.gz | |
Merge branch 'nd/status-partial-refresh'
* nd/status-partial-refresh:
rm: only refresh entries that we may touch
status: only touch path we may need to check
Diffstat (limited to 'builtin-rm.c')
| -rw-r--r-- | builtin-rm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-rm.c b/builtin-rm.c index 57975dbcfd..f3772c84de 100644 --- a/builtin-rm.c +++ b/builtin-rm.c @@ -169,9 +169,10 @@ int cmd_rm(int argc, const char **argv, const char *prefix) if (read_cache() < 0) die("index file corrupt"); - refresh_cache(REFRESH_QUIET); pathspec = get_pathspec(prefix, argv); + refresh_index(&the_index, REFRESH_QUIET, pathspec, NULL, NULL); + seen = NULL; for (i = 0; pathspec[i] ; i++) /* nothing */; |
