]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: add shortcut to work with strbufs
authorOlga Telezhnaya <olyatelezhnaya@gmail.com>
Thu, 29 Mar 2018 12:49:45 +0000 (12:49 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Mar 2018 21:24:47 +0000 (14:24 -0700)
commite2e7a245459391a06a11b70282177135b3fe111c
tree25d602d5be599b26541ecf7498a464b56d722c20
parent085f5f95a2723e8f9f4d037c01db5b786355ba49
ref-filter: add shortcut to work with strbufs

Add function strbuf_addf_ret() that helps to save a few lines of code.
Function expands fmt with placeholders, append resulting message
to strbuf *sb, and return error code ret.

Signed-off-by: Olga Telezhnaia <olyatelezhnaya@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c