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

[PATCH v3 4/4] Documentation: document foreign idents

From
Marcus Comstedt <marcus@mc.pp.se>
Date
Sep 18, 2010, 13:53 UTC
Message-ID
<c2829398f87f35f24522a780fa82b1250a15b7c8.1284820251.git.marcus@mc.pp.se>
In-Reply-To
<cover.1284820251.git.marcus@mc.pp.se>

Add a short paragraph to the "ident" documentation about the semantics and intended use of foreign idents.

Signed-off-by: Marcus Comstedt <marcus@mc.pp.se>
Signed-off-by: Henrik Grubbström <grubba@grubba.org>
---
 Documentation/gitattributes.txt |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Documentation/gitattributes.txt b/Documentation/gitattributes.txt
index e5a27d8..9af1d6f 100644
--- a/Documentation/gitattributes.txt
+++ b/Documentation/gitattributes.txt
@@ -272,6 +272,13 @@ sign `$` upon checkout.  Any byte sequence that begins with
 `$Id:` and ends with `$` in the worktree file is replaced
 with `$Id$` upon check-in.
 
+When converting a repository from a different version control
+system, it can be useful to create blobs which contain expanded
+`$Id$` tags.  Git will recognize such "foreign idents" if they
+contain at least one space within the payload.  A foreign ident
+will be replaced by `$Id$` upon check-in, but is left unaltered
+upon checkout.
+
 
 `filter`
 ^^^^^^^^
-- 
1.7.2
Previous: Marcus Comstedt
Message 7 of 7 in “fix normalization of foreign idents”
  1. 0/4 fix normalization of foreign identsMarcus Comstedt, Sep 18, 2010
  2. 2/4 convert: fix normalization of foreign identsMarcus Comstedt, Aug 23, 2010
  3. Junio C HamanoSep 18, 2010
  4. Marcus ComstedtSep 18, 2010
  5. 3/4 t0021: test checkout and commit of foreign identsMarcus Comstedt, Sep 7, 2010
  6. 1/4 convert: generalize checksafe parameterMarcus Comstedt, Sep 13, 2010
  7. 4/4 Documentation: document foreign identsMarcus Comstedt, Sep 18, 2010

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.