git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-update-index -q

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 2, 2008, 20:23 UTC
Message-ID
<7vsksijo00.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<quack.20080902T1051.lth1w02mo5l@roar.cs.berkeley.edu>
Karl Chen <quarl@cs.berkeley.edu> writes:
Show 10 quoted lines
> 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

Previous: Karl Chen
Message 2 of 2 in “git-update-index -q”
  1. Karl ChenSep 2, 2008
  2. Junio C HamanoSep 2, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.