Junio C Hamano  committed ee70fb8 Merge

Merge branch 'sn/ls-remote-get-url-doc' into maint

* sn/ls-remote-get-url-doc:
ls-remote: document the '--get-url' option

  • Participants
  • Parent commits 9fcacaa, 2303cad

Comments (0)

Files changed (2)

File Documentation/git-ls-remote.txt

 	it successfully talked with the remote repository, whether it
 	found any matching refs.
+	Expand the URL of the given remote repository taking into account any
+	"url.<base>.insteadOf" config setting (See linkgit:git-config[1]) and
+	exit without talking to the remote.
 	Location of the repository.  The shorthand defined in
 	$GIT_DIR/branches/ can be used. Use "." (dot) to list references in

File builtin/ls-remote.c

 static const char ls_remote_usage[] =
 "git ls-remote [--heads] [--tags]  [-u <exec> | --upload-pack <exec>]\n"
-"                     [-q|--quiet] [--exit-code] [<repository> [<refs>...]]";
+"                     [-q|--quiet] [--exit-code] [--get-url] [<repository> [<refs>...]]";
  * Is there one among the list of patterns that match the tail part