author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Mon, 17 Sep 2007 22:34:06 +0000 (23:34 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 26 Sep 2007 20:42:10 +0000 (13:42 -0700) | ||
commit | 26b28007689d27a921ea90e5a29fc8eb74b0d297 | |
tree | 5d422206c3c7ca53af345f72e665bf5ae82be057 | tree | snapshot |
parent | 102c2338da0b0954a04742f5cbe307fa6b49f225 | commit | diff |
apply: get rid of --index-info in favor of --build-fake-ancestor
git-am used "git apply -z --index-info" to find the original versions
of the files touched by the diff, to be able to do an inexpensive
three-way merge.
This operation makes only sense in a repository, since the index
information in the diff refers to blobs, which have to be present in
the current repository.
Therefore, teach "git apply" a mode to write out the result as an
index file to begin with, obviating the need for scripts to do it
themselves.
The sole user for --index-info is "git am" is converted to
use --build-fake-ancestor in this patch.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-am used "git apply -z --index-info" to find the original versions
of the files touched by the diff, to be able to do an inexpensive
three-way merge.
This operation makes only sense in a repository, since the index
information in the diff refers to blobs, which have to be present in
the current repository.
Therefore, teach "git apply" a mode to write out the result as an
index file to begin with, obviating the need for scripts to do it
themselves.
The sole user for --index-info is "git am" is converted to
use --build-fake-ancestor in this patch.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-apply.txt | diff | blob | history | |
builtin-apply.c | diff | blob | history | |
git-am.sh | diff | blob | history |