summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJohannes Sixt <johannes.sixt@telecom.at>2008-07-19 09:32:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-07-19 18:17:43 (GMT)
commitb8c5db35fc23913d72c52d990d399b8ef66b646f (patch)
treec8607c0851a2822d654c59fc715a7f0a277a68ad /compat
parentfe77b6959c47e1eaec0c96599b2c5ce7907707ec (diff)
downloadgit-b8c5db35fc23913d72c52d990d399b8ef66b646f.zip
git-b8c5db35fc23913d72c52d990d399b8ef66b646f.tar.gz
git-b8c5db35fc23913d72c52d990d399b8ef66b646f.tar.bz2
builtin-clone: rewrite guess_dir_name()
The function has to do three small and independent tasks, but all of them were crammed into a single loop. This rewrites the function entirely by unrolling these tasks. We also now use is_dir_sep(c) instead of c == '/' to increase portability. Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
0 files changed, 0 insertions, 0 deletions