diff options
author | Olga Telezhnaya <olyatelezhnaya@gmail.com> | 2018-03-29 15:49:45 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-30 00:24:47 +0300 |
commit | e2e7a245459391a06a11b70282177135b3fe111c (patch) | |
tree | 25d602d5be599b26541ecf7498a464b56d722c20 /ref-filter.h | |
parent | 085f5f95a2723e8f9f4d037c01db5b786355ba49 (diff) |
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>
Diffstat (limited to 'ref-filter.h')
0 files changed, 0 insertions, 0 deletions