replace: "libify" create_graft() and callees
commite24e871920ac04473a470645e4c4dc53b422dd75
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 28 Apr 2018 22:44:26 +0000 (29 00:44 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Apr 2018 02:12:29 +0000 (30 11:12 +0900)
tree66d27c129bf4ee284d443384bb7bb1f7b282822e
parentd398f2ea001ab4e639896c81fb616810cf14eb12
replace: "libify" create_graft() and callees

File this away as yet another patch in the "libification" category.

As with all useful functions, in the next commit we want to use
create_graft() from a higher-level function where it would be
inconvenient if the called function simply die()s: if there is a
problem, we want to let the user know how to proceed, and the callee
simply has no way of knowing what to say.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replace.c