From: Johannes Schindelin Date: Mon, 21 Nov 2005 20:54:51 GMT Subject: [RFC] Make grafts versionable Message-ID: ... by moving the location from .git/info/grafts to .gitgrafts. This allows checking it in like .gitignore, and sure enough also pulling it (as well as knowing who the heck added that particular graft anyway). Totally untested. Signed-off-by: Johannes Schindelin --- This would make half the discussion about rewriting history obsolete, methinks. Of course, to take advantage of it, you have to move the file .git/info/grafts (if it exists) into the correct place yourself: mv -i .git/info/grafts .gitgrafts environment.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) applies-to: 20259f7c4418392e0e0c2f3a867811f657498afe a1756142e3be780ed7992cd6a3f5e64b53c42253 diff --git a/environment.c b/environment.c index b5026f1..b0c2f79 100644 --- a/environment.c +++ b/environment.c @@ -35,7 +35,7 @@ static void setup_git_env(void) } git_graft_file = getenv(GRAFT_ENVIRONMENT); if (!git_graft_file) - git_graft_file = strdup(git_path("info/grafts")); + git_graft_file = strdup(git_path("../.gitgrafts")); } char *get_git_dir(void) --- 0.99.9.GIT