summaryrefslogtreecommitdiff
path: root/contrib/coccinelle
diff options
context:
space:
mode:
authorLibravatar Ákos Uzonyi <uzonyi.akos@gmail.com>2020-09-25 23:11:23 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-09-26 15:30:03 -0700
commitc09d1280f7787020e28844e8fd615d973d2a811e (patch)
treed2fa7c37770682522a491790b9335ad382cc39e6 /contrib/coccinelle
parentSeventeenth batch (diff)
downloadtgif-c09d1280f7787020e28844e8fd615d973d2a811e.tar.xz
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 'contrib/coccinelle')
0 files changed, 0 insertions, 0 deletions