fast-export: move commit rewriting logic into a function for reuse
commitf129c4275c81e908c1d14d1ac1e72f720e2aebb7
authorElijah Newren <newren@gmail.com>
Fri, 16 Nov 2018 07:59:51 +0000 (15 23:59 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Nov 2018 09:43:51 +0000 (17 18:43 +0900)
tree3ef5fe6c93f03ddf129de99e1d394a85ac372d34
parent1f30c904b38552dccd90135334c342e17a1ed077
fast-export: move commit rewriting logic into a function for reuse

Logic to replace a filtered commit with an unfiltered ancestor is useful
elsewhere; put it into a function we can call.

Signed-off-by: Elijah Newren <newren@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-export.c