@@ -35,7 +35,7 @@ struct cmd_reflog_expire_cb {
35
35
int recno ;
36
36
};
37
37
38
- struct expire_reflog_cb {
38
+ struct expire_reflog_policy_cb {
39
39
FILE * newlog ;
40
40
enum {
41
41
UE_NORMAL ,
@@ -225,7 +225,7 @@ static int keep_entry(struct commit **it, unsigned char *sha1)
225
225
* the expire_limit and queue them back, so that the caller can call
226
226
* us again to restart the traversal with longer expire_limit.
227
227
*/
228
- static void mark_reachable (struct expire_reflog_cb * cb )
228
+ static void mark_reachable (struct expire_reflog_policy_cb * cb )
229
229
{
230
230
struct commit * commit ;
231
231
struct commit_list * pending ;
@@ -264,7 +264,7 @@ static void mark_reachable(struct expire_reflog_cb *cb)
264
264
cb -> mark_list = leftover ;
265
265
}
266
266
267
- static int unreachable (struct expire_reflog_cb * cb , struct commit * commit , unsigned char * sha1 )
267
+ static int unreachable (struct expire_reflog_policy_cb * cb , struct commit * commit , unsigned char * sha1 )
268
268
{
269
269
/*
270
270
* We may or may not have the commit yet - if not, look it
@@ -300,7 +300,7 @@ static int should_expire_reflog_ent(unsigned char *osha1, unsigned char *nsha1,
300
300
const char * email , unsigned long timestamp , int tz ,
301
301
const char * message , void * cb_data )
302
302
{
303
- struct expire_reflog_cb * cb = cb_data ;
303
+ struct expire_reflog_policy_cb * cb = cb_data ;
304
304
struct commit * old , * new ;
305
305
306
306
if (timestamp < cb -> cmd -> expire_total )
@@ -328,7 +328,7 @@ static int expire_reflog_ent(unsigned char *osha1, unsigned char *nsha1,
328
328
const char * email , unsigned long timestamp , int tz ,
329
329
const char * message , void * cb_data )
330
330
{
331
- struct expire_reflog_cb * cb = cb_data ;
331
+ struct expire_reflog_policy_cb * cb = cb_data ;
332
332
333
333
if (cb -> cmd -> rewrite )
334
334
osha1 = cb -> last_kept_sha1 ;
@@ -355,7 +355,8 @@ static int expire_reflog_ent(unsigned char *osha1, unsigned char *nsha1,
355
355
return 0 ;
356
356
}
357
357
358
- static int push_tip_to_list (const char * refname , const unsigned char * sha1 , int flags , void * cb_data )
358
+ static int push_tip_to_list (const char * refname , const unsigned char * sha1 ,
359
+ int flags , void * cb_data )
359
360
{
360
361
struct commit_list * * list = cb_data ;
361
362
struct commit * tip_commit ;
@@ -370,7 +371,7 @@ static int push_tip_to_list(const char *refname, const unsigned char *sha1, int
370
371
371
372
static void reflog_expiry_prepare (const char * refname ,
372
373
const unsigned char * sha1 ,
373
- struct expire_reflog_cb * cb )
374
+ struct expire_reflog_policy_cb * cb )
374
375
{
375
376
if (!cb -> cmd -> expire_unreachable || !strcmp (refname , "HEAD" )) {
376
377
cb -> tip_commit = NULL ;
@@ -402,7 +403,7 @@ static void reflog_expiry_prepare(const char *refname,
402
403
}
403
404
}
404
405
405
- static void reflog_expiry_cleanup (struct expire_reflog_cb * cb )
406
+ static void reflog_expiry_cleanup (struct expire_reflog_policy_cb * cb )
406
407
{
407
408
if (cb -> unreachable_expire_kind != UE_ALWAYS ) {
408
409
if (cb -> unreachable_expire_kind == UE_HEAD ) {
@@ -420,7 +421,7 @@ static int expire_reflog(const char *refname, const unsigned char *sha1,
420
421
unsigned int flags , struct cmd_reflog_expire_cb * cmd )
421
422
{
422
423
static struct lock_file reflog_lock ;
423
- struct expire_reflog_cb cb ;
424
+ struct expire_reflog_policy_cb cb ;
424
425
struct ref_lock * lock ;
425
426
char * log_file ;
426
427
int status = 0 ;
0 commit comments