]> git.ipfire.org Git - thirdparty/git.git/commit
rev-list: support NUL-delimited --boundary option
authorJustin Tobler <jltobler@gmail.com>
Wed, 19 Mar 2025 18:34:09 +0000 (13:34 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 21 Mar 2025 10:40:02 +0000 (03:40 -0700)
commit1c3c1ab3d2a9558050ef6beee0a416700f6b953f
tree7a89a1be2d2a4cacbb38ed3ee5a5d6c46b4f1776
parentc3d59c2e70c939c39cbeb545b30899d52b650dfc
rev-list: support NUL-delimited --boundary option

The `--boundary` option for git-rev-list(1) prints boundary objects
found while performing the object walk in the form:

        $ git rev-list --boundary <rev>
        -<oid> LF

Add support for printing boundary objects in a NUL-delimited format when
the `-z` option is enabled.

        $ git rev-list -z --boundary <rev>
        <oid> NUL boundary=yes NUL

In this mode, instead of prefixing the boundary OID with '-', a separate
`boundary=yes` token/value pair is appended.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/rev-list-options.adoc
builtin/rev-list.c
t/t6000-rev-list-misc.sh