From: Junio C Hamano <gitster@pobox.com>
To: Karl Chen <quarl@cs.berkeley.edu>
Cc: Git mailing list <git@vger.kernel.org>
Subject: Re: git-update-index -q
Date: Tue, 02 Sep 2008 13:23:27 -0700 [thread overview]
Message-ID: <7vsksijo00.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <quack.20080902T1051.lth1w02mo5l@roar.cs.berkeley.edu> (Karl Chen's message of "Tue, 02 Sep 2008 10:51:50 -0700")
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
prev parent reply other threads:[~2008-09-02 20:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-02 17:51 git-update-index -q Karl Chen
2008-09-02 20:23 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vsksijo00.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=quarl@cs.berkeley.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).