diff options
| author | Junio C Hamano <gitster@pobox.com> | 2007-09-14 01:19:30 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2007-09-14 01:19:30 -0700 |
| commit | 58f6fb53dd1104559f6f5507562a975c0ff079af (patch) | |
| tree | e5d6efb5312abab35abf8a7b18aacc61776c6592 /builtin-mv.c | |
| parent | cbb390cd8f58ca6fc5c7b2c710425649b057b6d6 (diff) | |
| parent | 09d5dc32fbdfa7bfd23fe377455445dd2605c3b9 (diff) | |
| download | git-58f6fb53dd1104559f6f5507562a975c0ff079af.tar.gz | |
Merge branch 'jc/cachetree' into cr/reset
* jc/cachetree:
Simplify cache API
git-format-patch --in-reply-to: accept <message@id> with angle brackets
git-add -u: do not barf on type changes
Remove duplicate note about removing commits with git-filter-branch
git-clone: improve error message if curl program is missing or not executable
git.el: Allow the add and remove commands to be applied to ignored files.
git.el: Allow selecting whether to display uptodate/unknown/ignored files.
git.el: Keep the status buffer sorted by filename.
hooks--update: Explicitly check for all zeros for a deleted ref.
Diffstat (limited to 'builtin-mv.c')
| -rw-r--r-- | builtin-mv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/builtin-mv.c b/builtin-mv.c index 3563216aca..b95b7d286a 100644 --- a/builtin-mv.c +++ b/builtin-mv.c @@ -276,11 +276,8 @@ int cmd_mv(int argc, const char **argv, const char *prefix) add_file_to_cache(path, verbose); } - for (i = 0; i < deleted.nr; i++) { - const char *path = deleted.items[i].path; - remove_file_from_cache(path); - cache_tree_invalidate_path(active_cache_tree, path); - } + for (i = 0; i < deleted.nr; i++) + remove_file_from_cache(deleted.items[i].path); if (active_cache_changed) { if (write_cache(newfd, active_cache, active_nr) || |
