diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-04-22 15:25:25 +0200 |
---|---|---|
committer | Michael Haggerty <mhagger@alum.mit.edu> | 2016-06-13 11:23:50 +0200 |
commit | 7a418f3a17b95746eb94cfd55f4fe0385d058777 (patch) | |
tree | 9fa9b8766e10e0541e4d8970282bbe97f284cdd7 /t/lib-git-daemon.sh | |
parent | commit_ref_update(): remove the flags parameter (diff) | |
download | tgif-7a418f3a17b95746eb94cfd55f4fe0385d058777.tar.xz |
lock_ref_sha1_basic(): only handle REF_NODEREF mode
Now lock_ref_sha1_basic() is only called with flags==REF_NODEREF. So we
don't have to handle other cases anymore.
This enables several simplifications, the most interesting of which come
from the fact that ref_lock::orig_ref_name is now always the same as
ref_lock::ref_name:
* Remove ref_lock::orig_ref_name
* Remove local variable orig_refname from lock_ref_sha1_basic()
* ref_name can be initialize once and its value reused
* commit_ref_update() never has to write to the reflog for
lock->orig_ref_name
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 't/lib-git-daemon.sh')
0 files changed, 0 insertions, 0 deletions