* Conflicting "-n" short options for git-pull?
@ 2007-09-15 19:14 Frans Pop
2007-09-15 23:39 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Frans Pop @ 2007-09-15 19:14 UTC (permalink / raw)
To: git
Hello,
According to the man page for git-pull from git-core 1.5.3.1 (Debian
package), two options are defined as having the short option "-n":
-n, --no-summary
Do not show diffstat at the end of the merge.
[...]
-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.
Cheers,
Frans Pop
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Conflicting "-n" short options for git-pull?
2007-09-15 19:14 Conflicting "-n" short options for git-pull? Frans Pop
@ 2007-09-15 23:39 ` Junio C Hamano
2007-09-16 11:17 ` Frans Pop
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2007-09-15 23:39 UTC (permalink / raw)
To: Frans Pop; +Cc: git
Frans Pop <elendil@planet.nl> writes:
> According to the man page for git-pull from git-core 1.5.3.1 (Debian
> package), two options are defined as having the short option "-n":
>
> -n, --no-summary
> Do not show diffstat at the end of the merge.
> [...]
> -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.
The manpage option descriptions are shared between the
commands. Maybe we should drop mention of the shorthand form.
When git-fetch is used -n means --no-tags because there is no
other -n; when git-pull indirectly invokes git-fetch, you need
to spell it --no-tags because --no-summary takes precedence.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Conflicting "-n" short options for git-pull?
2007-09-15 23:39 ` Junio C Hamano
@ 2007-09-16 11:17 ` Frans Pop
0 siblings, 0 replies; 3+ messages in thread
From: Frans Pop @ 2007-09-16 11:17 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
On Sunday 16 September 2007, Junio C Hamano wrote:
> Frans Pop <elendil@planet.nl> writes:
> > According to the man page for git-pull from git-core 1.5.3.1 (Debian
> > package), two options are defined as having the short option "-n":
> >
> > -n, --no-summary
> > Do not show diffstat at the end of the merge.
> > [...]
> > -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.
>
> The manpage option descriptions are shared between the
> commands. Maybe we should drop mention of the shorthand form.
Not sure if that last is the correct solution. Wouldn't it mean that short
options would not be documented at all anymore?
> When git-fetch is used -n means --no-tags because there is no
> other -n; when git-pull indirectly invokes git-fetch, you need
> to spell it --no-tags because --no-summary takes precedence.
That does explain, but it is not at all obvious from the documentation.
Guess this is a general "problem" in git then.
Another question.
Is it possible to set default options for commands somehow?
I'd like to run git-pull with '--no-summary' by default. I could of course
define an alias, but that only covers 'git-pull' and not 'git pull'.
Does git itself have some mechanism for this?
Thanks,
Frans Pop
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-09-16 11:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-15 19:14 Conflicting "-n" short options for git-pull? Frans Pop
2007-09-15 23:39 ` Junio C Hamano
2007-09-16 11:17 ` Frans Pop
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox