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

Documentation for update-index

From
Rasmus Villemoes <rv@rasmusvillemoes.dk>
Date
Jan 6, 2018, 23:33 UTC
Message-ID
<CAKwiHFj9n8sWcfcie6Qm6pFe4L4u9VL1gv5ZVbnXt_E_Dne7dg@mail.gmail.com>
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
Message 1 of 1 in “Documentation for update-index”
  1. Rasmus VillemoesJan 6, 2018

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.