diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-10-03 03:03:15 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-10-03 03:03:15 -0700 |
commit | fed276e7524d6a80ae5dec037d586bd28543fc79 (patch) | |
tree | 979ede5142a918b8d0de5249789f697389e3d0b8 /builtin-ls-files.c | |
parent | 34c6dbdef439f7cd93d3fe22493a3c1496ce96f7 (diff) | |
parent | 4c75136f7697f76b31641db775163f5c75906ee2 (diff) | |
download | git-fed276e7524d6a80ae5dec037d586bd28543fc79.tar.gz |
Sync with GIT 1.5.3.4
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-ls-files.c')
-rw-r--r-- | builtin-ls-files.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-ls-files.c b/builtin-ls-files.c index 6c1db86e80..171d449048 100644 --- a/builtin-ls-files.c +++ b/builtin-ls-files.c @@ -280,7 +280,8 @@ static void prune_cache(const char *prefix) if (pos < 0) pos = -pos-1; - active_cache += pos; + memmove(active_cache, active_cache + pos, + (active_nr - pos) * sizeof(struct cache_entry *)); active_nr -= pos; first = 0; last = active_nr; |