git/refs
Karthik Nayak 33d15b5435 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>
2024-02-23 10:36:28 -08:00
..
debug.c refs: prepare `refs_init_db()` for initializing worktree refs 2024-01-08 13:17:30 -08:00
files-backend.c refs: introduce `refs_for_each_include_root_refs()` 2024-02-23 10:36:27 -08:00
iterator.c treewide: remove unnecessary cache.h inclusion from several sources 2023-03-21 10:56:51 -07:00
packed-backend.c Merge branch 'ps/worktree-refdb-initialization' 2024-01-26 08:54:46 -08:00
packed-backend.h Revert "Merge branch 'ps/avoid-unnecessary-hook-invocation-with-packed-refs'" 2022-04-13 15:51:33 -07:00
ref-cache.c treewide: remove unnecessary includes in source files 2023-12-26 12:04:31 -08:00
ref-cache.h hash-ll.h: split out of hash.h to remove dependency on repository.h 2023-04-24 12:47:32 -07:00
refs-internal.h refs: introduce `refs_for_each_include_root_refs()` 2024-02-23 10:36:27 -08:00
reftable-backend.c for-each-ref: add new option to include root refs 2024-02-23 10:36:28 -08:00