Make "git help" react to window size correctly
authorLinus Torvalds <torvalds@osdl.org>
Sun, 18 Dec 2005 20:15:58 +0000 (12:15 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 18 Dec 2005 21:53:33 +0000 (13:53 -0800)
commitea77e675e564211513ebedb4f5bdcda482d7fd30
treeb804a7bacbbf43ccc657a71baf58ec15cf7c336c
parentd808111ebdb0b50709527612221eb2970ed6ece9
Make "git help" react to window size correctly

Currently the git "show commands" function will react to the environment
variable COLUMNS, or just default to a width of 80 characters.

That's just soo eighties. Nobody sane sets COLUMNS any more, unless they
need to support some stone-age software from before the age of steam
engines, SIGWINCH and TIOCGWINSZ.

So get with the new century, and use TIOCGWINSZ to get the terminal size.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c