Skip to contentSkip to conversation

Add urls.txt to git-clone man page

PATCH New Andrew Ruder 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add urls.txt to git-clone man page

Since git-clone is one of the many commands taking URLs to remote repositories as an argument, it should include the URL-types list from urls.txt.

Split up urls.txt into urls.txt and urls-remotes.txt. The latter should be used by anything besides git-clone where a discussion of using .git/config and .git/remotes/ to name URLs just doesn't make as much sense.

---
 Documentation/git-clone.txt    |    7 +++-
 Documentation/git-fetch.txt    |    2 +-
 Documentation/git-pull.txt     |    2 +-
 Documentation/git-push.txt     |    2 +-
 Documentation/urls-remotes.txt |   55 ++++++++++++++++++++++++++++++++++++++++
 Documentation/urls.txt         |   54 ---------------------------------------
 6 files changed, 63 insertions(+), 59 deletions(-)
Documentation/git-clone.txt +5 -2
index 4a5bab5..2f39864 100644
@@ -106,8 +106,9 @@ OPTIONS
 	as patches.
 
 <repository>::
-	The (possibly remote) repository to clone from.  It can
-	be any URL git-fetch supports.
+	The (possibly remote) repository to clone from.  See the
+	<<URLS,URLS>> section below for more information on specifying
+	repositories.
 
 <directory>::
 	The name of a new directory to clone into.  The "humanish"
@@ -116,6 +117,8 @@ OPTIONS
 	for "host.xz:foo/.git").  Cloning into an existing directory
 	is not allowed.
 
+include::urls.txt[]
+
 Examples
 --------
 
Documentation/git-fetch.txt +1 -1
index 5fbeab7..9003473 100644
@@ -35,7 +35,7 @@ include::fetch-options.txt[]
 
 include::pull-fetch-param.txt[]
 
-include::urls.txt[]
+include::urls-remotes.txt[]
 
 SEE ALSO
 --------
Documentation/git-pull.txt +1 -1
index 84693f8..e1eb2c1 100644
@@ -29,7 +29,7 @@ include::fetch-options.txt[]
 
 include::pull-fetch-param.txt[]
 
-include::urls.txt[]
+include::urls-remotes.txt[]
 
 include::merge-strategies.txt[]
 
Documentation/git-push.txt +1 -1
index 665f6dc..74a0da1 100644
@@ -95,7 +95,7 @@ the remote repository.
 -v::
 	Run verbosely.
 
-include::urls.txt[]
+include::urls-remotes.txt[]
 
 
 Examples
Documentation/urls-remotes.txt new file +55 -0

55 lines not on this page · raw message

Documentation/urls.txt +0 -54

57 lines not on this page · raw message

Signature · 1 line
1.5.3.rc0.13.gc37c