git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Doc repository-layout: Show refs/replace

From
Philip Oakley <philipoakley@iee.org>
Date
Oct 21, 2012, 20:52 UTC
Message-ID
<1350852757-3924-1-git-send-email-philipoakley@iee.org>
Signed-off-by: Philip Oakley <philipoakley@iee.org>
---

My question on stackoverflow http://stackoverflow.com/questions/6800692 how-do-git-grafts-and-replace-differ-are-grafts-now-deprecated noted that the gitrepository-layout(5) wasn't up to date.

Recent hits have propmted me to offer a patch.
Here is that patch.
Philip
---
 Documentation/gitrepository-layout.txt | 6 ++++++
 1 file changed, 6 insertions(+)
diff --git a/Documentation/gitrepository-layout.txt b/Documentation/gitrepository-layout.txt
index 5c891f1..d546e20 100644
--- a/Documentation/gitrepository-layout.txt
+++ b/Documentation/gitrepository-layout.txt
@@ -93,6 +93,12 @@ refs/remotes/`name`::
 	records tip-of-the-tree commit objects of branches copied
 	from a remote repository.
 
+refs/replace/`<obj-sha1>`::
+	records the SHA1 of the object that replaces `<obj-sha1>`.
+	This is similar to info/grafts and is internally used and
+	maintained by `git replace`. Such refs can be exchanged between
+	repositories while grafts are not.
+
 packed-refs::
 	records the same information as refs/heads/, refs/tags/,
 	and friends record in a more efficient way.  See
-- 
1.7.11.msysgit.1
Next: Jeff King
Message 1 of 2 in “Doc repository-layout: Show refs/replace”
  1. Doc repository-layout: Show refs/replacePhilip Oakley, Oct 21, 2012
  2. Jeff KingOct 25, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.