зеркало из https://github.com/microsoft/git.git
t2018: improve style of if-statement
Convert `[]` to `test` and break if-then into separate lines, both of which bring the style in line with Git's coding guidelines. Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
7ffb54618b
Коммит
5020f6806a
|
@ -20,7 +20,8 @@ do_checkout () {
|
|||
exp_sha=${2:-$(git rev-parse --verify HEAD)} &&
|
||||
|
||||
# default options for git checkout: -b
|
||||
if [ -z "$3" ]; then
|
||||
if test -z "$3"
|
||||
then
|
||||
opts="-b"
|
||||
else
|
||||
opts="$3"
|
||||
|
|
Загрузка…
Ссылка в новой задаче