Thread (3 messages) 3 messages, 3 authors, 2017-10-19

Re: [Alt. PATCH] ls-remote: deprecate -h as short for --heads

From: Jeff King <hidden>
Date: 2017-10-19 20:32:56

Possibly related (same subject, not in this thread)

On Thu, Oct 19, 2017 at 08:26:47PM +0200, René Scharfe wrote:
quoted hunk ↗ jump to hunk
diff --git a/Documentation/git-ls-remote.txt b/Documentation/git-ls-remote.txt
index 5f2628c8f8..82622e7fbc 100644
--- a/Documentation/git-ls-remote.txt
+++ b/Documentation/git-ls-remote.txt
@@ -29,6 +29,9 @@ OPTIONS
 	These options are _not_ mutually exclusive; when given
 	both, references stored in refs/heads and refs/tags are
 	displayed.
++
+*NOTE*: -h without any other parameters shows a short help text instead
+of any refs.
Yuck. This "we only treat -h as special in certain cases" rule is
sufficiently magical that I don't think we want to advertise and lock
ourselves into it.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help