author | Christian Couder <chriscool@tuxfamily.org> | |
Wed, 18 Nov 2009 06:50:58 +0000 (07:50 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 21 Nov 2009 06:08:10 +0000 (22:08 -0800) | ||
commit | 6476b38b1f3d258006566c3c9c6c80cc07fda354 | |
tree | aa87937dc0da79a66512825ead214bf84deeadae | tree | snapshot |
parent | e36e6c00cd60130f8792319a5aa0f56d2da68e14 | commit | diff |
replace: use a GIT_NO_REPLACE_OBJECTS env variable
This has the same effect as --no-replace-objects option; git ignores the
replace refs. When --no-replace-objects option is passed to git, this
environment variable is set to "1" and exported to subprocesses in order
to propagate the same setting.
It is useful for example for scripts, as the git commands used in them can
now be aware that they must not read replace refs.
Tested-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This has the same effect as --no-replace-objects option; git ignores the
replace refs. When --no-replace-objects option is passed to git, this
environment variable is set to "1" and exported to subprocesses in order
to propagate the same setting.
It is useful for example for scripts, as the git commands used in them can
now be aware that they must not read replace refs.
Tested-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h | diff | blob | history | |
connect.c | diff | blob | history | |
environment.c | diff | blob | history | |
git.c | diff | blob | history | |
t/t6050-replace.sh | diff | blob | history |