summaryrefslogtreecommitdiff
path: root/builtin/mv.c
diff options
context:
space:
mode:
authorLibravatar Tanushree Tumane <tanushreetumane@gmail.com>2020-02-17 09:40:31 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-02-19 09:37:14 -0800
commitbfacfce7d94951fe5b4e70bc2431dae5506b474b (patch)
tree90e1fa47eb75c8dfc15adc633c7ae84d27b95b66 /builtin/mv.c
parentbisect: use the standard 'if (!var)' way to check for 0 (diff)
downloadtgif-bfacfce7d94951fe5b4e70bc2431dae5506b474b.tar.xz
bisect--helper: introduce new `decide_next()` function
Let's refactor code from bisect_next_check() into a new decide_next() helper function. This removes some goto statements and makes the code simpler, clearer and easier to understand. While at it `bad_ref` and `good_glob` are not const any more to void casting them inside `free()`. Mentored-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Tanushree Tumane <tanushreetumane@gmail.com> Signed-off-by: Miriam Rubio <mirucam@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/mv.c')
0 files changed, 0 insertions, 0 deletions