]> git.ipfire.org Git - thirdparty/git.git/commit - revision.c
read_revision_from_stdin(): use strbuf
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Nov 2009 10:00:40 +0000 (02:00 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Nov 2009 22:50:43 +0000 (14:50 -0800)
commit63d564b300274ec71a274f9b672366d07ae5620a
treed6ddf4ae6954c6c441f255f6a87ceb14489888de
parent3bb18e58fc4f5eddd97bc34fc11dc207b47cc093
read_revision_from_stdin(): use strbuf

It is so 2005 (and Linus ;-) to have a fixed 1000-byte buffer that
reads from the user.  Let's use strbuf to unlimit the input length.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c