https://github.com/git/git
Revision 81fb7efeda2ce14cbb44b91eed37aeeb2e541832 authored by Shawn O. Pearce on 02 June 2007, 18:41:10 UTC, committed by Shawn O. Pearce on 06 June 2007, 05:26:49 UTC
After we finish reading a chunk of data from the file stream
we know how many digits we need in the line number column to
show the current maximum line number.  If our line number column
isn't wide enough, we should expand it out to the correct width.

Any file over our default allowance of 5 digits (99,999 lines)
is so large that the slight UI "glitch" when we widen the column
out is trivial compared to the time it will take Git to fully do
the annotations.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
1 parent 375e136
History
Tip revision: 81fb7efeda2ce14cbb44b91eed37aeeb2e541832 authored by Shawn O. Pearce on 02 June 2007, 18:41:10 UTC
git-gui: Automatically expand the line number column as needed
Tip revision: 81fb7ef
File Mode Size
lib
.gitignore -rw-r--r-- 62 bytes
GIT-VERSION-GEN -rwxr-xr-x 1.8 KB
Makefile -rw-r--r-- 3.5 KB
git-gui.sh -rwxr-xr-x 56.1 KB

back to top