diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-01-13 18:32:23 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-01-15 10:23:57 -0800 |
commit | 1a0c8dfd89475d6bb09ddee8c019cf0ae5b3bdc2 (patch) | |
tree | fea2d4a8ae1b60e90034f2bc3e40ce09978c5a6c /transport-helper.c | |
parent | a392f57daf7dc5e72ab3ada7802eddc000fa3081 (diff) | |
download | git-1a0c8dfd89475d6bb09ddee8c019cf0ae5b3bdc2.tar.gz |
strbuf: give strbuf_getline() to the "most text friendly" variantjc/strbuf-getline
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>
Diffstat (limited to 'transport-helper.c')
-rw-r--r-- | transport-helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/transport-helper.c b/transport-helper.c index 163e4b1477..e45d88f1d7 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -137,7 +137,8 @@ static struct child_process *get_helper(struct transport *transport) data->no_disconnect_req = 0; /* - * Open the output as FILE* so strbuf_getline() can be used. + * Open the output as FILE* so strbuf_getline_*() family of + * functions can be used. * Do this with duped fd because fclose() will close the fd, * and stuff like taking over will require the fd to remain. */ |