replace: factor object resolution out of replace_object
commit479bd75751d81b6f3ffc29fcece56f9a200493a1
authorJeff King <peff@peff.net>
Sat, 26 Apr 2014 20:00:56 +0000 (26 22:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Apr 2014 19:38:33 +0000 (29 12:38 -0700)
tree976ed12dbbf9a2e4c097f2aa9d3d27fcb04c8305
parent70c7bd6dafc83eee7bf76d33d12027224d80f20d
replace: factor object resolution out of replace_object

As we add new options that operate on objects before
replacing them, we'll want to be able to feed raw sha1s
straight into replace_object. Split replace_object into the
object-resolution part and the actual replacement.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/replace.c