author | Thomas Rast <trast@student.ethz.ch> | |
Tue, 6 Dec 2011 17:43:39 +0000 (18:43 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 6 Dec 2011 23:13:39 +0000 (15:13 -0800) | ||
commit | 6c52ec8a9ab48b50fc8bf9559467d5a4cf7eee3b | |
tree | 276dfba73bd613d45c703e33ccffdc09cad7524d | tree | snapshot |
parent | 11c8a74a64a49f236d475514f723123a8928463d | commit | diff |
reset: update cache-tree data when appropriate
In the case of --mixed and --hard, we throw away the old index and
rebuild everything from the tree argument (or HEAD). So we have an
opportunity here to fill in the cache-tree data, just as read-tree
did.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In the case of --mixed and --hard, we throw away the old index and
rebuild everything from the tree argument (or HEAD). So we have an
opportunity here to fill in the cache-tree data, just as read-tree
did.
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reset.c | diff | blob | history | |
t/t0090-cache-tree.sh | diff | blob | history |