diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2012-02-12 15:16:20 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-14 16:16:19 -0800 |
commit | ec7ff5ba272b565ed093a98dc13dd5cd26aeac92 (patch) | |
tree | 9039325114378101cc6f922337a9ab33e3adb3bf /ctype.c | |
parent | Update draft release notes to 1.7.9.1 (diff) | |
download | tgif-ec7ff5ba272b565ed093a98dc13dd5cd26aeac92.tar.xz |
make lineno_width() from blame reusable for others
builtin/blame.c has a helper function to compute how many columns
we need to show a line-number, whose implementation is reusable as
a more generic helper function to count the number of columns
necessary to show any cardinal number.
Rename it to decimal_width(), move it to pager.c and export it for
use by future callers.
Signed-off-by: Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'ctype.c')
0 files changed, 0 insertions, 0 deletions