author | Junio C Hamano <junkio@cox.net> | |
Mon, 15 May 2006 07:46:05 +0000 (00:46 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 15 May 2006 07:46:57 +0000 (00:46 -0700) | ||
commit | 613f02739a49337592a32936caa04b1590ca1109 | |
tree | 42efb6a52eee4d05b824feeb541145f2d8662f86 | tree | snapshot |
parent | c68998f5b5f43717a27da82fac08a76d6588bae7 | commit | diff |
read-tree -u one-way merge fix to check out locally modified paths.
The "-u" flag means "update the working tree files", but to
other types of merges, it also implies "I want to keep my local
changes" -- because they prevent local changes from getting lost
by using verify_uptodate. The one-way merge is different from
other merges in that its purpose is opposite of doing something
else while keeping unrelated local changes. The point of
one-way merge is to nuke local changes. So while it feels
somewhat wrong that this actively loses local changes, it is the
right thing to do.
Signed-off-by: Junio C Hamano <junkio@cox.net>
The "-u" flag means "update the working tree files", but to
other types of merges, it also implies "I want to keep my local
changes" -- because they prevent local changes from getting lost
by using verify_uptodate. The one-way merge is different from
other merges in that its purpose is opposite of doing something
else while keeping unrelated local changes. The point of
one-way merge is to nuke local changes. So while it feels
somewhat wrong that this actively loses local changes, it is the
right thing to do.
Signed-off-by: Junio C Hamano <junkio@cox.net>
read-tree.c | diff | blob | history |