{"thread":{"id":"15334","subject":"git-update-index -q","startedAt":"2008-09-02T17:51:50Z","lastAt":"2008-09-02T20:23:27Z","messageCount":2,"participants":["Karl Chen","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"89518","messageId":"quack.20080902T1051.lth1w02mo5l@roar.cs.berkeley.edu","threadId":"15334","inReplyTo":null,"subject":"git-update-index -q","fromName":"Karl Chen","fromEmail":"quarl@cs.berkeley.edu","sentAt":"2008-09-02T17:51:50Z","receivedAt":"2008-09-02T17:51:50Z","isPatch":false,"sender":{"key":"quarl@cs.berkeley.edu","avatar":null},"body":"\nThe git-update-index man page entry for -q says:\n\n       -q\n           Quiet. If --refresh finds that the index needs an\n           update, the default behavior is to error out. This\n           option makes git-update-index continue anyway.\n\nCan someone explain this to me?  As far as I can tell,\ngit-update-index without -q does not error out after the first\nupdate.\n"},{"id":"89535","messageId":"7vsksijo00.fsf@gitster.siamese.dyndns.org","threadId":"15334","inReplyTo":"quack.20080902T1051.lth1w02mo5l@roar.cs.berkeley.edu","subject":"Re: git-update-index -q","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-09-02T20:23:27Z","receivedAt":"2008-09-02T20:23:27Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Karl Chen <quarl@cs.berkeley.edu> writes:\n\n> The git-update-index man page entry for -q says:\n>\n>        -q\n>            Quiet. If --refresh finds that the index needs an\n>            update, the default behavior is to error out. This\n>            option makes git-update-index continue anyway.\n>\n> Can someone explain this to me?  As far as I can tell,\n> git-update-index without -q does not error out after the first\n> update.\n\n: gitster j; git init\nInitialized empty Git repository in /var/tmp/j/.git/\n: gitster j/master; >afile; git update-index --add afile\n: gitster j/master; echo a >afile\n: gitster j/master; git update-index --refresh; echo $?\nafile: needs update\n1\n: gitster j/master; git update-index -q --refresh; echo $?\n0\n: gitster j/master; exit\n"}]}