diff options
author | Jeff King <peff@peff.net> | 2015-09-24 17:05:43 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-09-25 10:18:18 -0700 |
commit | 399ad553ce87fca77a9bc5a0e734a361a9e8a5a3 (patch) | |
tree | a095f0c903c94fba7a506970f91ce68d87b2fc05 /hex.c | |
parent | bb3788cebb814aa003941abcf484da872aa61412 (diff) | |
download | git-399ad553ce87fca77a9bc5a0e734a361a9e8a5a3.tar.gz |
strbuf: make strbuf_complete_line more generic
The strbuf_complete_line function makes sure that a buffer
ends in a newline. But we may want to do this for any
character (e.g., "/" on the end of a path). Let's factor out
a generic version, and keep strbuf_complete_line as a thin
wrapper.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'hex.c')
0 files changed, 0 insertions, 0 deletions