]> git.ipfire.org Git - thirdparty/git.git/commit
show_log: factor out interdiff/range-diff generation
authorJunio C Hamano <gitster@pobox.com>
Thu, 23 May 2024 22:50:06 +0000 (15:50 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 May 2024 23:04:28 +0000 (16:04 -0700)
commit84ed5055153ccfe5c38501e68ac58634001bbd9d
treecbfa5bd93fdadb6bc45a69e357fe732667c32573
parentb9cfe4845cb2562584837bc0101c0ab76490a239
show_log: factor out interdiff/range-diff generation

The integration of "git range-diff" with "git format-patch" for a
single patch (i.e., not generating "range-diff" into the cover
letter) hooks into log-tree.c:show_log(), which is responsible for
writing the log message out and other stuff.  Essentially,
everything you see before the diffstat and the patch is generated
there.

Split out the code that spits out the interdiff/range-diff into a
separate helper function show_diff_of_diff().  Hopefully this will
make it easier to move things around in the output stream in the
future patches.

This is supposed to be a no-op refactoring.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c