git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-update-index -q
@ 2008-09-02 17:51 Karl Chen
  2008-09-02 20:23 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Karl Chen @ 2008-09-02 17:51 UTC (permalink / raw)
  To: Git mailing list


The git-update-index man page entry for -q says:

       -q
           Quiet. If --refresh finds that the index needs an
           update, the default behavior is to error out. This
           option makes git-update-index continue anyway.

Can someone explain this to me?  As far as I can tell,
git-update-index without -q does not error out after the first
update.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git-update-index -q
  2008-09-02 17:51 git-update-index -q Karl Chen
@ 2008-09-02 20:23 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2008-09-02 20:23 UTC (permalink / raw)
  To: Karl Chen; +Cc: Git mailing list

Karl Chen <quarl@cs.berkeley.edu> writes:

> The git-update-index man page entry for -q says:
>
>        -q
>            Quiet. If --refresh finds that the index needs an
>            update, the default behavior is to error out. This
>            option makes git-update-index continue anyway.
>
> Can someone explain this to me?  As far as I can tell,
> git-update-index without -q does not error out after the first
> update.

: gitster j; git init
Initialized empty Git repository in /var/tmp/j/.git/
: gitster j/master; >afile; git update-index --add afile
: gitster j/master; echo a >afile
: gitster j/master; git update-index --refresh; echo $?
afile: needs update
1
: gitster j/master; git update-index -q --refresh; echo $?
0
: gitster j/master; exit

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-09-02 20:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-02 17:51 git-update-index -q Karl Chen
2008-09-02 20:23 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).