expire_reflog(): extract two policy-related functions
authorMichael Haggerty <redacted>
Fri, 12 Dec 2014 08:56:48 +0000 (09:56 +0100)
committerJunio C Hamano <redacted>
Fri, 12 Dec 2014 19:43:48 +0000 (11:43 -0800)
commitc48a1635355118d490fef5af14d8296a8e6f92df
tree7c8c53f19d2e20e8e94e9a97cdd3659ecaaedef0
parent60cc3c4072259609aefbdbc762d1f72bcbd97783
expire_reflog(): extract two policy-related functions

Extract two functions, reflog_expiry_prepare() and
reflog_expiry_cleanup(), from expire_reflog(). This is a further step
towards separating the code for deciding on expiration policy from the
code that manages the physical deletion of reflog entries.

This change requires a couple of local variables from expire_reflog()
to be turned into fields of "struct expire_reflog_cb". More
reorganization of the callback data will follow in later commits.

Signed-off-by: Michael Haggerty <redacted>
Reviewed-by: Stefan Beller <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/reflog.c
git clone https://git.99rst.org/PROJECT