author | Linus Torvalds <torvalds@linux-foundation.org> | |
Sun, 13 Jan 2008 08:30:56 +0000 (00:30 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 13 Jan 2008 08:30:56 +0000 (00:30 -0800) | ||
commit | fa9dcf80e1048ea996349891a885ac325019fcac | |
tree | f05ce66e4cb81298f83d7ade9c22530d34e98a43 | tree | snapshot |
parent | a8db80c22494396a81d2b4b7f4082c369fc0f78d | commit | diff |
Fix performance regression for partial commits
When running "git commit paths" to create a partial commit, we
used to carefully build the temporary index so that we do not
lose the cached stat information. The rewrite of the command in
C lost it by carelessly using read_tree().
This resurrects the earlier behaviour to keep the cached stat
information as much as possible by using one-tree merge logic.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
When running "git commit paths" to create a partial commit, we
used to carefully build the temporary index so that we do not
lose the cached stat information. The rewrite of the command in
C lost it by carelessly using read_tree().
This resurrects the earlier behaviour to keep the cached stat
information as much as possible by using one-tree merge logic.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | diff | blob | history |