]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: libify get_ref_atom_value()
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:25:02 +0000 (14:25 -0700)
commite339611b12e68d4658252bf4c557e58dea6e4c18
treee82fc657c259af3a08ced87b185fd33f6bad76c5
parent74efea9474149b16bbc17f89df00cd3d117f763f
ref-filter: libify get_ref_atom_value()

Finish removing die() calls from ref-filter formatting logic,
so that it could be used by other commands.

Change the signature of get_ref_atom_value() and underlying functions
by adding return value and strbuf parameter for error message.
Return value equals 0 upon success and -1 upon failure.
Upon failure, error message is appended to the strbuf.

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