summaryrefslogtreecommitdiff
path: root/Documentation/RelNotes/1.7.7.txt
diff options
context:
space:
mode:
authorLibravatar Will Chandler <wfc@wfchandler.org>2021-05-08 01:00:43 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-05-11 13:59:57 +0900
commit5f03e5126d895283e6d42093dd4f15cbc30011dd (patch)
treecf827a2550bace761752ff9f32440edce9ca039a /Documentation/RelNotes/1.7.7.txt
parentGit 2.31.1 (diff)
downloadtgif-5f03e5126d895283e6d42093dd4f15cbc30011dd.tar.xz
refs: cleanup directories when deleting packed ref
When deleting a packed ref via 'update-ref -d', a lockfile is made in the directory that would contain the loose copy of that ref, creating any directories in the ref's path that do not exist. When the transaction completes, the lockfile is deleted, but any empty parent directories made when creating the lockfile are left in place. These empty directories are not removed by 'pack-refs' or other housekeeping tasks and will accumulate over time. When deleting a loose ref, we remove all empty parent directories at the end of the transaction. This commit applies the parent directory cleanup logic used when deleting loose refs to packed refs as well. Signed-off-by: Will Chandler <wfc@wfchandler.org> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/RelNotes/1.7.7.txt')
0 files changed, 0 insertions, 0 deletions