]> git.ipfire.org Git - thirdparty/git.git/commit - range-diff.c
range-diff: left-pad patch numbers
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 13 Aug 2018 11:33:28 +0000 (04:33 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Aug 2018 17:44:52 +0000 (10:44 -0700)
commitd1f87a2d9c4877ada003c231b92de7560eab62ed
tree3b133f8532e498711526e82a95ae284084c206b2
parent7190a67eab181ebfbf61f4c8afaa3a149f685853
range-diff: left-pad patch numbers

As pointed out by Elijah Newren, tbdiff has this neat little alignment
trick where it outputs the commit pairs with patch numbers that are
padded to the maximal patch number's width:

  1: cafedead =   1: acefade first patch
[...]
314: beefeada < 314: facecab up to PI!

Let's do the same in range-diff, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
range-diff.c