]> git.ipfire.org Git - thirdparty/git.git/commit - revision.h
Export rewrite_parents() for 'log -L'
authorBo Yang <struggleyb.nku@gmail.com>
Thu, 28 Mar 2013 16:47:31 +0000 (17:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Mar 2013 17:29:10 +0000 (10:29 -0700)
commitc7edcae06ed90ec0567179a78d7d1170e610c042
treea92f6dca1bc4e9b3309d9491e15d379ac6b3b535
parent25ed3412f86b136efb17689b6712d9e546cac388
Export rewrite_parents() for 'log -L'

The function rewrite_one is used to rewrite a single
parent of the current commit, and is used by rewrite_parents
to rewrite all the parents.

Decouple the dependence between them by making rewrite_one
a callback function that is passed to rewrite_parents. Then
export rewrite_parents for reuse by the line history browser.

We will use this function in line-log.c.

Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
revision.c
revision.h