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

[PATCH] Documentation: fix git-clone manpage not to refer to itself

From
SOSergei Organov <osv@javad.com>
Date
Nov 16, 2007, 18:43 UTC
Message-ID
<87ejeq1131.fsf@osv.gnss.ru>
Signed-off-by: Sergei Organov <osv@javad.com>
---
 Documentation/git-clone.txt |    1 +
 Documentation/urls.txt      |    6 ++++++
 2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index 14e58f3..c90bcec 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -130,6 +130,7 @@ OPTIONS
 	for "host.xz:foo/.git").  Cloning into an existing directory
 	is not allowed.
 
+:git-clone: 1
 include::urls.txt[]
 
 Examples
diff --git a/Documentation/urls.txt b/Documentation/urls.txt
index e67f914..4f66738 100644
--- a/Documentation/urls.txt
+++ b/Documentation/urls.txt
@@ -36,5 +36,11 @@ To sync with a local directory, you can use:
 - file:///path/to/repo.git/
 ===============================================================
 
+ifndef::git-clone[]
 They are mostly equivalent, except when cloning.  See
 gitlink:git-clone[1] for details.
+endif::git-clone[]
+
+ifdef::git-clone[]
+They are equivalent, except the former implies --local option.
+endif::git-clone[]
-- 
1.5.3.4
Next: Johannes Schindelin
Message 1 of 6 in “Documentation: fix git-clone manpage not to refer to itself”
  1. Documentation: fix git-clone manpage not to refer to itselfSergei Organov, Nov 16, 2007
  2. Johannes SchindelinNov 19, 2007
  3. Jakub NarebskiNov 19, 2007
  4. Sergei OrganovNov 19, 2007
  5. Wincent ColaiutaNov 20, 2007
  6. Johannes SchindelinNov 20, 2007

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.