Query about documentation of git pull -n
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: [email protected]
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.
Hi,
Quoted 5 lines · Anthony Bolton
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.
Quoted 2 lines
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 1/1 git pull manpage: don't include -n from fetch-options.txt
The -n option stands for --no-summary in git pull
--- Documentation/fetch-options.txt | 2 ++ Documentation/git-pull.txt | 1 + 2 files changed, 3 insertions(+), 0 deletions(-)
Documentation/fetch-options.txt +2 -0
@@ -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
Documentation/git-pull.txt +1 -0
@@ -25,6 +25,7 @@ OPTIONS ------- include::merge-options.txt[] +:git-pull: 1 include::fetch-options.txt[] include::pull-fetch-param.txt[]
Signature · 1 line
1.5.4.rc4-dirty
Re: [PATCH] git pull manpage: don't include -n from fetch-options.txt
Quoted 1 line · Miklos Vajna
The -n option stands for --no-summary in git pull
Ok, but does that mean --no-tags does not exist there?
PATCH 1/1 git pull manpage: don't include -n from fetch-options.txt
The -n option stands for --no-summary in git pull
---
Quoted 3 lines · Junio C Hamano
Quoted 1 line
The -n option stands for --no-summary in git pull
Ok, but does that mean --no-tags does not exist there?
Oops, my bad. Here is an updated patch to just remove '-n' and keep '--no-tags'.
Documentation/fetch-options.txt | 5 +++++ Documentation/git-pull.txt | 1 + 2 files changed, 6 insertions(+), 0 deletions(-)
Documentation/fetch-options.txt +5 -0
@@ -23,7 +23,12 @@ fetches is a descendant of `<lbranch>`. This option overrides that check. +ifndef::git-pull[] -n, \--no-tags:: +endif::git-pull[] +ifdef::git-pull[] +\--no-tags:: +endif::git-pull[] 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
Documentation/git-pull.txt +1 -0
@@ -25,6 +25,7 @@ OPTIONS ------- include::merge-options.txt[] +:git-pull: 1 include::fetch-options.txt[] include::pull-fetch-param.txt[]
Signature · 1 line
1.5.4.rc4-dirty
PATCH 1/1 git pull manpage: don't include -n from fetch-options.txt
From: Miklos Vajna <[email protected]>
The -n option stands for --no-summary in git pull
[jes: reworded the description to avoid mentioning 'git-fetch';
also exclude '-n' conditional on git-pull -- ugly because of the missing "else" statement in asciidoc]
---
On Fri, 25 Jan 2008, Miklos Vajna wrote: > On Thu, Jan 24, 2008 at 05:36:33PM -0800, Junio C Hamano > <[email protected]> wrote: > > > > The -n option stands for --no-summary in git pull > > > > Ok, but does that mean --no-tags does not exist there? > > Oops, my bad. Here is an updated patch to just remove '-n' and > keep '--no-tags'. How about this instead?
Documentation/fetch-options.txt | 12 ++++++++---- Documentation/git-pull.txt | 1 + 2 files changed, 9 insertions(+), 4 deletions(-)
Documentation/fetch-options.txt +8 -4
@@ -23,11 +23,15 @@ fetches is a descendant of `<lbranch>`. This option overrides that check. +ifdef::git-pull[] +\--no-tags:: +endif::git-pull[] +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[] + By default, tags that point at objects that are downloaded + from the remote repository are fetched and stored locally. + This option disables this automatic tag following. -t, \--tags:: Most of the tags are fetched automatically as branch
Documentation/git-pull.txt +1 -0
@@ -25,6 +25,7 @@ OPTIONS ------- include::merge-options.txt[] +:git-pull: 1 include::fetch-options.txt[] include::pull-fetch-param.txt[]
Signature · 1 line
1.5.4.rc4.36.g6e122
Re: [PATCH] git pull manpage: don't include -n from fetch-options.txt
Quoted 3 lines · Johannes Schindelin
[jes: reworded the description to avoid mentioning 'git-fetch';
also exclude '-n' conditional on git-pull -- ugly because of the missing "else" statement in asciidoc]
right, i should have noticed that we should not include git-fetch in the git pull manpage :)
thanks,
- VMiklos
Re: [PATCH] git pull manpage: don't include -n from fetch-options.txt
In reply to Miklos VajnaHi,
Quoted 1 line · Miklos Vajna
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