Merge branch 'mh/reflog-expire' into mh/ref-trans-value-check
commit61c9475221a139245d8c56ae79be25f8ee9c35c2
authorJunio C Hamano <gitster@pobox.com>
Mon, 9 Feb 2015 22:37:01 +0000 (9 14:37 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Feb 2015 22:37:01 +0000 (9 14:37 -0800)
tree6db8711a022def2db0c281094f52143ebe14008e
parent9874fca7122563e28d699a911404fc49d2a24f1c
parentc653e0343d04ba89040c8ba18d7ca2e55ece6338
Merge branch 'mh/reflog-expire' into mh/ref-trans-value-check

* mh/reflog-expire: (24 commits)
  refs.c: let fprintf handle the formatting
  refs.c: don't expose the internal struct ref_lock in the header file
  lock_any_ref_for_update(): inline function
  refs.c: remove unlock_ref/close_ref/commit_ref from the refs api
  reflog_expire(): new function in the reference API
  expire_reflog(): treat the policy callback data as opaque
  Move newlog and last_kept_sha1 to "struct expire_reflog_cb"
  expire_reflog(): move rewrite to flags argument
  expire_reflog(): move verbose to flags argument
  expire_reflog(): pass flags through to expire_reflog_ent()
  struct expire_reflog_cb: a new callback data type
  Rename expire_reflog_cb to expire_reflog_policy_cb
  expire_reflog(): move updateref to flags argument
  expire_reflog(): move dry_run to flags argument
  expire_reflog(): add a "flags" argument
  expire_reflog(): extract two policy-related functions
  Extract function should_expire_reflog_ent()
  expire_reflog(): use a lock_file for rewriting the reflog file
  expire_reflog(): return early if the reference has no reflog
  expire_reflog(): rename "ref" parameter to "refname"
  ...
refs.c
refs.h