]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/diff-pairs: allow explicit diff queue flush
authorJustin Tobler <jltobler@gmail.com>
Fri, 28 Feb 2025 21:33:46 +0000 (15:33 -0600)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Mar 2025 16:17:47 +0000 (08:17 -0800)
commitcf15095ec52f1e997ec9eef42bdf275d2a68fe66
treee413d7d7fc680a6d3d9da72960adad54acaee993
parent5bd10b2adcf3a080169574dd08c5529de81eecb1
builtin/diff-pairs: allow explicit diff queue flush

The diffs queued from git-diff-pairs(1) are flushed when stdin is
closed. To enable greater flexibility, allow control over when the diff
queue is flushed by writing a single NUL byte on stdin between input
file pairs. Diff output between flushes is separated by a single NUL
byte.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-diff-pairs.adoc
builtin/diff-pairs.c
t/t4070-diff-pairs.sh