]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/reflog.c
Extract function should_expire_reflog_ent()
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 12 Dec 2014 08:56:47 +0000 (09:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Dec 2014 19:43:47 +0000 (11:43 -0800)
commit60cc3c4072259609aefbdbc762d1f72bcbd97783
treefb574895a06797d32f327001edb47bf19c94442c
parentf3b661f766c1525265d065fdd0529985979c80c6
Extract function should_expire_reflog_ent()

Extract from expire_reflog_ent() a function that is solely responsible
for deciding whether a reflog entry should be expired. By separating
this "business logic" from the mechanics of actually expiring entries,
we are working towards the goal of encapsulating reflog expiry within
the refs API, with policy decided by a callback function passed to it
by its caller.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c