]> git.ipfire.org Git - thirdparty/git.git/commit - strbuf.c
strbuf: give strbuf_getline() to the "most text friendly" variant
authorJunio C Hamano <gitster@pobox.com>
Thu, 14 Jan 2016 02:32:23 +0000 (18:32 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 15 Jan 2016 18:23:57 +0000 (10:23 -0800)
commit1a0c8dfd89475d6bb09ddee8c019cf0ae5b3bdc2
treefea2d4a8ae1b60e90034f2bc3e40ce09978c5a6c
parenta392f57daf7dc5e72ab3ada7802eddc000fa3081
strbuf: give strbuf_getline() to the "most text friendly" variant

Now there is no direct caller to strbuf_getline(), we can demote it
to file-scope static that is private to strbuf.c and rename it to
strbuf_getdelim().  Rename strbuf_getline_crlf(), which is designed
to be the most "text friendly" variant, and allow it to take over
this simplest name, strbuf_getline(), so we can add more uses of it
without having to type _crlf over and over again in the coming
steps.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/am.c
strbuf.c
strbuf.h
transport-helper.c