diff options
author | 2015-03-02 10:29:52 +0100 | |
---|---|---|
committer | 2015-03-05 12:35:36 -0800 | |
commit | 706d5f816fbcb1299c19f4d41bea60f1e229165e (patch) | |
tree | 3d2a8d3b4e750d984af6bf88be391bed49ca0182 /t/t3002-ls-files-dashpath.sh | |
parent | write_ref_sha1(): remove check for lock == NULL (diff) | |
download | tgif-706d5f816fbcb1299c19f4d41bea60f1e229165e.tar.xz |
write_ref_sha1(): move write elision test to callers
write_ref_sha1() previously skipped the write if the reference already
had the desired value, unless lock->force_write was set. Instead,
perform that test at the callers.
Two of the callers (in rename_ref()) unconditionally set force_write
just before calling write_ref_sha1(), so they don't need the extra
check at all. Nor do they need to set force_write anymore.
The last caller, in ref_transaction_commit(), still needs the test.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3002-ls-files-dashpath.sh')
0 files changed, 0 insertions, 0 deletions