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

Re: [GSoC][PATCH v3 0/4] Add refs exists subcommand

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 2, 2025, 16:57 UTC
Message-ID
<xmqqtt1kkd0y.fsf@gitster.g>
In-Reply-To
<20250826064110.10540-1-meetsoni3017@gmail.com>
Meet Soni <meetsoni3017@gmail.com> writes:
Show 40 quoted lines
> This series introduces `git refs exists` as a modern replacement for
> `git show-ref --exists`, continuing the effort to consolidate commands
> under the `git refs` namespace.
>
> changes in v3:
>  - Reverted commit message.
>  - nit: added empty line.
>
> Meet Soni (4):
>   builtin/refs: add 'exists' subcommand
>   t1403: split 'show-ref --exists' tests into a separate file
>   t1422: refactor tests to be shareable
>   t: add test for git refs exists subcommand
>
>  Documentation/git-refs.adoc |  7 ++++
>  builtin/refs.c              | 48 +++++++++++++++++++++++
>  t/meson.build               |  4 +-
>  t/show-ref-exists-tests.sh  | 77 +++++++++++++++++++++++++++++++++++++
>  t/t1403-show-ref.sh         | 65 -------------------------------
>  t/t1422-show-ref-exists.sh  |  9 +++++
>  t/t1462-refs-exists.sh      | 10 +++++
>  7 files changed, 154 insertions(+), 66 deletions(-)
>  create mode 100644 t/show-ref-exists-tests.sh
>  create mode 100755 t/t1422-show-ref-exists.sh
>  create mode 100755 t/t1462-refs-exists.sh
>
> Range-diff against v2:
>  1:  19623eb97e <  -:  ---------- doc: factor out common option
>  2:  69c207dc45 <  -:  ---------- builtin/for-each-ref: align usage string with the man page
>  3:  6eeb1c070a <  -:  ---------- builtin/for-each-ref: factor out core logic into a helper
>  4:  eecccfe98b <  -:  ---------- builtin/refs: add list subcommand
>  5:  aa91c5c570 <  -:  ---------- t6300: refactor tests to be shareable
>  6:  fed66d91c0 <  -:  ---------- t: add test for git refs list subcommand
>  7:  b55e6d36eb <  -:  ---------- diff: ensure consistent diff behavior with ignore options
>  8:  e1d3d61a45 <  -:  ---------- diff: --no-index should ignore the worktree
>  9:  621ce9c1c6 <  -:  ---------- git-jump: make `diff` work with filenames containing spaces
> 10:  9a49aef8dc <  -:  ---------- environment: remove the global variable 'merge_log_config'
> 11:  22d421fed9 <  -:  ---------- builtin/fmt-merge-msg: stop depending on 'the_repository'
> 12:  741f36c7d9 <  -:  ---------- docs: remove stray bracket from git-clone synopsis
> 13:  1fa68948c3 <  -:  ---------- The second batch
GitGitGadget and/or range-diff somehow went berserk?

But thanks to it, I now know that the series is built on top of the second batch ;-) I was wondering why the patches did not apply cleanly to a more recent tip of 'master'.

Will queue.  Thanks.
Previous: Patrick Steinhardt
Message 23 of 23 in “Add refs exists subcommand”
  1. Meet SoniAug 21, 2025
  2. [GSoC][PATCH 1/2] builtin/refs: add 'exists' subcommandMeet Soni, Aug 21, 2025
  3. Patrick SteinhardtAug 21, 2025
  4. [GSoC][PATCH 2/2] t: add test for git refs exists subcommandMeet Soni, Aug 21, 2025
  5. Patrick SteinhardtAug 21, 2025
  6. Meet SoniAug 22, 2025
  7. Patrick SteinhardtAug 21, 2025
  8. Junio C HamanoAug 21, 2025
  9. Meet SoniAug 22, 2025
  10. [GSoC][PATCH v2 0/4] Add refs exists subcommandMeet Soni, Aug 23, 2025
  11. [GSoC][PATCH v2 1/4] builtin/refs: add 'exists' subcommandMeet Soni, Aug 23, 2025
  12. [GSoC][PATCH v2 2/4] t1403: split 'show-ref --exists' tests into a separate fileMeet Soni, Aug 23, 2025
  13. [GSoC][PATCH v2 3/4] t1422: refactor tests to be shareableMeet Soni, Aug 23, 2025
  14. Patrick SteinhardtAug 24, 2025
  15. [GSoC][PATCH v2 4/4] t: add test for git refs exists subcommandMeet Soni, Aug 23, 2025
  16. Patrick SteinhardtAug 24, 2025
  17. [GSoC][PATCH v3 0/4] Add refs exists subcommandMeet Soni, Aug 26, 2025
  18. [GSoC][PATCH v3 1/4] builtin/refs: add 'exists' subcommandMeet Soni, Aug 26, 2025
  19. [GSoC][PATCH v3 2/4] t1403: split 'show-ref --exists' tests into a separate fileMeet Soni, Aug 26, 2025
  20. [GSoC][PATCH v3 3/4] t1422: refactor tests to be shareableMeet Soni, Aug 26, 2025
  21. [GSoC][PATCH v3 4/4] t: add test for git refs exists subcommandMeet Soni, Aug 26, 2025
  22. Patrick SteinhardtSep 2, 2025
  23. Junio C HamanoSep 2, 2025

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.