Gentoo Archives: gentoo-portage-dev

From: Martin Vaeth <martin@×××××.de>
To: gentoo-portage-dev@l.g.o
Subject: [gentoo-portage-dev] Re: [PATCH] [sync] Run `git update-index --refresh` when doing shallow pulls
Date: Mon, 31 Oct 2016 07:17:02
Message-Id: slrno1drub.pvt.martin@lounge.imp.fu-berlin.de
In Reply to: [gentoo-portage-dev] [PATCH] [sync] Run `git update-index --refresh` when doing shallow pulls by "Michał Górny"
1 Michał Górny <mgorny@g.o> wrote:
2 > + if quiet: # -q needs to go first
3 > + update_index_cmd.append('-q')
4
5 The options -q --unmerged (which are implicitly passed by "git status")
6 are not only to suppress verbosity:
7 The git-update-index man page has to say for these options:
8
9 : the default behavior is to error out. This option makes
10 : git update-index continue anyway.
11
12 and if I understood the git source code correctly, without
13 these options git will indeed break some loops early in the
14 "error" case, i.e. it will perhaps not do a full update of
15 the index in the "error" case.

Replies