git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC] Make grafts versionable
@ 2005-11-21 20:54 Johannes Schindelin
  2005-11-21 21:04 ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2005-11-21 20:54 UTC (permalink / raw)
  To: git


... 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 <Johannes.Schindelin@gmx.de>

---

	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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-11-22  0:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-21 20:54 [RFC] Make grafts versionable Johannes Schindelin
2005-11-21 21:04 ` H. Peter Anvin
2005-11-21 21:35   ` Linus Torvalds
2005-11-21 21:41     ` H. Peter Anvin
2005-11-22  0:37     ` Johannes Schindelin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).