summaryrefslogtreecommitdiff
path: root/t/t2016-checkout-patch.sh
diff options
context:
space:
mode:
authorLibravatar Eric Sunshine <sunshine@sunshineco.com>2015-07-17 18:59:59 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-07-20 11:29:24 -0700
commit4e07815dba5ccad0cfcb672b99e2000bd3dc3543 (patch)
treea5ba2f603431a4c60649911a1f53d1fb5ea4d6aa /t/t2016-checkout-patch.sh
parentcheckout: improve die_if_checked_out() robustness (diff)
downloadtgif-4e07815dba5ccad0cfcb672b99e2000bd3dc3543.tar.xz
checkout: die_if_checked_out: simplify strbuf management
There is no reason to keep the strbuf active long after its last use. By releasing it as early as possible, resource management is simplified and there is less worry about future changes resulting in a leak. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t2016-checkout-patch.sh')
0 files changed, 0 insertions, 0 deletions