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

[PATCH v1 0/1] rev-list: add --missing=print-only mode

From
Siddharth Asthana <siddharthasthana31@gmail.com>
Date
Apr 19, 2026, 08:48 UTC
Message-ID
<20260419084840.33986-1-siddharthasthana31@gmail.com>
Hi,

At GitLab, Gitaly uses `rev-list --missing=print` to find missing objects in partial clones. The current output mixes present and missing objects together, with missing ones prefixed by '?', so Gitaly has to post-process the output to extract just the missing OIDs. Having a dedicated mode that outputs only the missing OIDs directly would simplify this.

This patch adds --missing=print-only which suppresses all regular object output and prints only the missing OIDs, one per line, without the '?' prefix. A `missing_action_prints()` helper consolidates the repeated three-way checks for MA_PRINT/MA_PRINT_INFO/MA_PRINT_ONLY.

The series is based on top of 9f223ef1c0 (Git 2.54-rc2).
CI: https://gitlab.com/gitlab-org/git/-/pipelines/2463294546
Siddharth Asthana (1):
  rev-list: add --missing=print-only mode
 Documentation/rev-list-options.adoc |  5 +++
 builtin/rev-list.c                  | 49 ++++++++++++++++++++++-------
 t/t6022-rev-list-missing.sh         | 26 +++++++++++++++
 3 files changed, 68 insertions(+), 12 deletions(-)
base-commit: 9f223ef1c026d91c7ac68cc0211bde255dda6199
Thanks
- Siddharth
Next: Siddharth Asthana
Message 1 of 18 in “rev-list: add --missing=print-only mode”
  1. 0/1 rev-list: add --missing=print-only modeSiddharth Asthana, Apr 19, 2026
  2. 1/1 rev-list: add --missing=print-only modeSiddharth Asthana, Apr 19, 2026
  3. Derrick StoleeApr 19, 2026
  4. Siddharth AsthanaApr 20, 2026
  5. Derrick StoleeApr 20, 2026
  6. Patrick SteinhardtApr 20, 2026
  7. Phillip WoodApr 20, 2026
  8. Patrick SteinhardtApr 20, 2026
  9. Siddharth AsthanaApr 20, 2026
  10. Kristoffer HaugsbakkApr 20, 2026
  11. Siddharth AsthanaApr 20, 2026
  12. 0/1 rev-list: add --missing-only option to filter outputSiddharth Asthana, Sep 1, 2026
  13. 1/1 rev-list: add --missing-only option to filter outputSiddharth Asthana, Sep 1, 2026
  14. Junio C HamanoSep 1, 2026
  15. Siddharth AsthanaSep 1, 2026
  16. Junio C HamanoSep 2, 2026
  17. 0/1 rev-list: add --missing-only option to filter outputSiddharth Asthana, Sep 3, 2026
  18. 1/1 rev-list: add --missing-only option to filter outputSiddharth Asthana, Sep 3, 2026

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.