author | Linus Torvalds <torvalds@osdl.org> | |
Sun, 18 Dec 2005 20:15:58 +0000 (12:15 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 18 Dec 2005 21:53:33 +0000 (13:53 -0800) | ||
commit | ea77e675e564211513ebedb4f5bdcda482d7fd30 | |
tree | b804a7bacbbf43ccc657a71baf58ec15cf7c336c | tree | snapshot |
parent | d808111ebdb0b50709527612221eb2970ed6ece9 | commit | diff |
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>
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 | diff | blob | history |