author | Christian Couder <chriscool@tuxfamily.org> | |
Fri, 23 Jan 2009 09:06:53 +0000 (10:06 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 1 Jun 2009 00:02:59 +0000 (17:02 -0700) | ||
commit | 680955702990c1d4bfb3c6feed6ae9c6cb5c3c07 | |
tree | 44ee65b637c621cafc717ef76f1c196bcf28f17c | tree | snapshot |
parent | 292687003abcfb68d296c57d7e812b0469f74647 | commit | diff |
replace_object: add mechanism to replace objects found in "refs/replace/"
The code implementing this mechanism has been copied more-or-less
from the commit graft code.
This mechanism is used in "read_sha1_file". sha1 passed to this
function that match a ref name in "refs/replace/" are replaced by
the sha1 that has been read in the ref.
We "die" if the replacement recursion depth is too high or if we
can't read the replacement object.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The code implementing this mechanism has been copied more-or-less
from the commit graft code.
This mechanism is used in "read_sha1_file". sha1 passed to this
function that match a ref name in "refs/replace/" are replaced by
the sha1 that has been read in the ref.
We "die" if the replacement recursion depth is too high or if we
can't read the replacement object.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile | diff | blob | history | |
commit.h | diff | blob | history | |
replace_object.c | [new file with mode: 0644] | blob |
sha1_file.c | diff | blob | history |