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

[RFC] Reporting index properties

From
AVAlex Vandiver <alexmv@dropbox.com>
Date
Oct 5, 2017, 23:39 UTC
Message-ID
<alpine.DEB.2.10.1710051625430.812@alexmv-linux>
Heya,

As part of gathering some automated performance statistics of git, it would be useful to be able to extract some vital properties of the index. While `git update-index` has ways to _set_ the index version, and enable/disable various extensions, AFAICT there is no method by which one can ask for reporting about the current state of them -- short of re-implementing all of the index-parsing logic external to Git, which is not terribly appealing.

I hesitate to propose adding a flag to `git update-index` which reads but does no updating, as that seems to make a misnomer of the command. But this also doesn't seem worthy of a new top-level command.

Do folks have feelings about surfacing this information, and where such logic should live?

 - Alex
Next: Junio C Hamano
Message 1 of 7 in “[RFC] Reporting index properties”
  1. Alex VandiverOct 5, 2017
  2. Junio C HamanoOct 6, 2017
  3. Alex VandiverOct 6, 2017
  4. Junio C HamanoOct 6, 2017
  5. Alex VandiverOct 6, 2017
  6. Jonathan NiederOct 6, 2017
  7. Junio C HamanoOct 6, 2017

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.