git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Documentation for update-index
@ 2018-01-06 23:33 Rasmus Villemoes
  0 siblings, 0 replies; only message in thread
From: Rasmus Villemoes @ 2018-01-06 23:33 UTC (permalink / raw)
  To: git

The man page for update-index 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.

       --ignore-submodules
           Do not try to update submodules. This option is only
respected when passed before --refresh.


However, it seems that the "This option is only respected when passed
before --refresh." also applies to -q (and --unmerged); at least I get
different results from

  git update-index -q --refresh
  git update-index --refresh -q

From the documentation, that doesn't seem to be intentional, but the
code in update-index.c seems to handle -q, --ignore-submodules,
--ignore-missing and --unmerged the same way.

Rasmus

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-01-06 23:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-06 23:33 Documentation for update-index Rasmus Villemoes

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).