summaryrefslogtreecommitdiffstats
path: root/t/t4018/cpp-function-returning-pointer
diff options
context:
space:
mode:
authorÁkos Uzonyi <uzonyi.akos@gmail.com>2020-09-25 23:11:23 +0200
committerJunio C Hamano <gitster@pobox.com>2020-09-26 15:30:03 -0700
commitc09d1280f7787020e28844e8fd615d973d2a811e (patch)
treed2fa7c37770682522a491790b9335ad382cc39e6 /t/t4018/cpp-function-returning-pointer
parent9bc233ae1cf19a49e51842c7959d80a675dbd1c0 (diff)
downloadgit-c09d1280f7787020e28844e8fd615d973d2a811e.tar.gz
git-c09d1280f7787020e28844e8fd615d973d2a811e.zip
completion: use "prev" variable instead of introducing "prevword"
In both _git_checkout and _git_switch a new "prevword" variable were introduced, however the "prev" variable already contains the last word. The "prevword" variable is replaced with "prev", and the case is moved to the beginning of the function, like it's done in many other places (e.g. _git_commit). Also the indentaion of the case is fixed. Signed-off-by: Ákos Uzonyi <uzonyi.akos@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4018/cpp-function-returning-pointer')
0 files changed, 0 insertions, 0 deletions