reflog_expire(): new function in the reference API
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 12 Dec 2014 08:56:59 +0000 (09:56 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Dec 2014 18:11:40 +0000 (10:11 -0800)
commitfa5b1830b0605b39295631f6e167ddb133f2dbde
treea65601ee9a32d33d5f99620325c36dd34f53f9f0
parentb729effbdbc9ae2d087a83b9e2a165fb8cc04641
reflog_expire(): new function in the reference API

Move expire_reflog() into refs.c and rename it to reflog_expire().
Turn the three policy functions into function pointers that are passed
into reflog_expire(). Add function prototypes and documentation to
refs.h.

[jc: squashed in $gmane/261582, drop "extern" in function definition]

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Stefan Beller <sbeller@google.com>
Tweaked-by: Ramsay Jones
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/reflog.c
refs.c
refs.h