]> git.ipfire.org Git - thirdparty/git.git/commit - environment.c
Allow to control where the replace refs are looked for
authorMike Hommey <mh@glandium.org>
Thu, 11 Jun 2015 21:34:59 +0000 (06:34 +0900)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Jun 2015 22:28:17 +0000 (15:28 -0700)
commit58d121b22b5b83a27a1891dcf335458f687cac1e
treec5172c1cc9376718074bf2c008655fbd970d0b7d
parentf86f31ab33c3406adebbb9f9f61be550dcc5a472
Allow to control where the replace refs are looked for

It can be useful to have grafts or replace refs for specific use-cases while
keeping the default "view" of the repository pristine (or with a different
set of grafts/replace refs).

It is possible to use a different graft file with GIT_GRAFT_FILE, but while
replace refs are more powerful, they don't have an equivalent override.

Add a GIT_REPLACE_REF_BASE environment variable to control where git is
going to look for replace refs.

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replace.c
cache.h
environment.c
log-tree.c
refs.c