Merge branch 'ps/show-ref'
commitd8972a5abd77d1f50aaaa7be7d70e80c9d18cdef
authorJunio C Hamano <gitster@pobox.com>
Wed, 8 Nov 2023 02:03:59 +0000 (8 11:03 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Nov 2023 02:04:00 +0000 (8 11:04 +0900)
tree5e1e74ba07c7e57f3a16a8a6cdb6631a9afac712
parent42b87f7ee60323f2e45a91233db80d44d3e33ad2
parent0497e6c61172faabf412e013f2fc30a05054a46d
Merge branch 'ps/show-ref'

Teach "git show-ref" a mode to check the existence of a ref.

* ps/show-ref:
  t: use git-show-ref(1) to check for ref existence
  builtin/show-ref: add new mode to check for reference existence
  builtin/show-ref: explicitly spell out different modes in synopsis
  builtin/show-ref: ensure mutual exclusiveness of subcommands
  builtin/show-ref: refactor options for patterns subcommand
  builtin/show-ref: stop using global vars for `show_one()`
  builtin/show-ref: stop using global variable to count matches
  builtin/show-ref: refactor `--exclude-existing` options
  builtin/show-ref: fix dead code when passing patterns
  builtin/show-ref: fix leaking string buffer
  builtin/show-ref: split up different subcommands
  builtin/show-ref: convert pattern to a local variable
t/t3200-branch.sh