]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
for-each-ref: add new option to include root refs
authorKarthik Nayak <karthik.188@gmail.com>
Fri, 23 Feb 2024 10:01:12 +0000 (11:01 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Feb 2024 18:36:28 +0000 (10:36 -0800)
commit33d15b54358d8ec7fc0bd70062ddd1116402c8fe
tree8d5c2bcc53bb8018a27b96dbc8729b132d0dd20d
parent810f7a1aace85ed9ffc454db6726c818c86685f0
for-each-ref: add new option to include root refs

The git-for-each-ref(1) command doesn't provide a way to print root refs
i.e pseudorefs and HEAD with the regular "refs/" prefixed refs.

This commit adds a new option "--include-root-refs" to
git-for-each-ref(1). When used this would also print pseudorefs and HEAD
for the current worktree.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-for-each-ref.txt
builtin/for-each-ref.c
ref-filter.c
ref-filter.h
refs/reftable-backend.c
t/t6302-for-each-ref-filter.sh