aboutsummaryrefslogtreecommitdiff
path: root/dir.h
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2016-04-22 15:25:25 +0200
committerMichael Haggerty <mhagger@alum.mit.edu>2016-06-13 11:23:50 +0200
commit7a418f3a17b95746eb94cfd55f4fe0385d058777 (patch)
tree9fa9b8766e10e0541e4d8970282bbe97f284cdd7 /dir.h
parent5d9b2de4ef5a6b0cc38bbb3affcc614a66c663d7 (diff)
downloadgit-7a418f3a17b95746eb94cfd55f4fe0385d058777.tar.gz
git-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 'dir.h')
0 files changed, 0 insertions, 0 deletions