Query about documentation of git pull -n

4 messages, 3 authors, 2016-06-15 · open the first message on its own page

Query about documentation of git pull -n

From: Anthony Bolton <hidden>
Date: 2016-06-15 22:44:08

Comment from a new user:
 
The git-pull man pages imply that "git pull -n" and "git pull --no-tags"
are the same, but -n seems to do something different entirely (same with
git fetch). I found this in msysgit but the msysgit boys say that it's
actually a problem with core git.
 
If -n is intended to be different from --no-tags than can you update the
documentation please?
 
Regards,
Anthony
____________________________________________________________

Anthony Bolton
phone: +44 (0)1225 475290, email: anthony.bolton@ipl.com

IPL Information Processing Limited 
www.ipl.com
____________________________________________________________


 


The information transmitted is intended only for the person
or entity to which it is addressed and may contain
confidential and/or privileged material. If you are not the
addressee, any disclosure, reproduction, copying,
distribution, or other dissemination or use of this
communication is strictly prohibited. If you have received
this transmission in error please notify the sender
immediately and then delete this email.

Any representations or commitments expressed in this email
are subject to contract.

This message has been scanned for viruses and dangerous
content. However, it is essential that the recipient also
checks this message using commercially available mail
scanning and anti-virus software. IPL Information Processing
Limited accepts no liability for any loss or damage resulting
from any virus or other dangerous content in this message.

IPL Information Processing Limited is registered in England
and Wales under company registration number 1418818.
Registration took place at Cardiff on 10 May 1979. IPL
Information Processing Limited's registered office and
normal place of business is Eveleigh House, Grove Street,
Bath, BA1 5LR, United Kingdom. IPL is also registered for
Value Added Tax (VAT) under registration number GB 601 2931 83.

Re: Query about documentation of git pull -n

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:08

Hi,

On Thu, 24 Jan 2008, Anthony Bolton wrote:
Comment from a new user:
 The git-pull man pages imply that "git pull -n" and "git pull 
--no-tags" are the same, but -n seems to do something different entirely 
(same with git fetch). I found this in msysgit but the msysgit boys say 
that it's actually a problem with core git.
FWIW I am that msysgit boy.  And I did not say anything about git-fetch, 
but only about git-pull.  I even said that "-n" means "--no-summary" to 
git-pull.
If -n is intended to be different from --no-tags than can you update the 
documentation please?
That is such a low-hanging fruit.  Since you apparently use git yourself, 
there is not much left to learn in order to fix this bug.  IOW this is a 
perfect occasion to get just a little involved in the git development.

Just look at Documentation/diff-options.txt for an example how to use the 
"ifdef::" construct, and then use that construct in 
Documentation/fetch-options.txt.

Hth,
Dscho

[PATCH] git pull manpage: don't include -n from fetch-options.txt

From: Miklos Vajna <hidden>
Date: 2016-06-15 22:44:08

The -n option stands for --no-summary in git pull

Signed-off-by: Miklos Vajna <redacted>
---
 Documentation/fetch-options.txt |    2 ++
 Documentation/git-pull.txt      |    1 +
 2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Documentation/fetch-options.txt b/Documentation/fetch-options.txt
index 61e48cc..0a1ce68 100644
--- a/Documentation/fetch-options.txt
+++ b/Documentation/fetch-options.txt
@@ -23,11 +23,13 @@
 	fetches is a descendant of `<lbranch>`.  This option
 	overrides that check.
 
+ifndef::git-pull[]
 -n, \--no-tags::
 	By default, `git-fetch` fetches tags that point at
 	objects that are downloaded from the remote repository
 	and stores them locally.  This option disables this
 	automatic tag following.
+endif::git-pull[]
 
 -t, \--tags::
 	Most of the tags are fetched automatically as branch
diff --git a/Documentation/git-pull.txt b/Documentation/git-pull.txt
index 77fdaf1..f9f1e0d 100644
--- a/Documentation/git-pull.txt
+++ b/Documentation/git-pull.txt
@@ -25,6 +25,7 @@ OPTIONS
 -------
 include::merge-options.txt[]
 
+:git-pull: 1
 include::fetch-options.txt[]
 
 include::pull-fetch-param.txt[]
-- 
1.5.4.rc4-dirty

Re: [PATCH] git pull manpage: don't include -n from fetch-options.txt

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:44:08

Hi,

On Fri, 25 Jan 2008, Miklos Vajna wrote:
The -n option stands for --no-summary in git pull
Very nice, Anthony... uhm, oh!  Okay, I take that back.  Very nice, 
Miklos!

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