]> git.ipfire.org Git - thirdparty/git.git/commit
t1002: modernize outdated conditional
authorNsengiyumva Wilberforce <nsengiyumvawilberforce@gmail.com>
Fri, 14 Oct 2022 08:01:42 +0000 (08:01 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 14 Oct 2022 16:16:50 +0000 (09:16 -0700)
commit8d2863e4ed7f35baeb2604ee8ed39fe6aa5e62c7
treeaa1d31760c135deb09dafc391e34eaf0e3a8abe7
parent3dcec76d9df911ed8321007b1d197c1a206dc164
t1002: modernize outdated conditional

Tests in this script use an unusual and hard to reason about
conditional construct

    if expression; then false; else :; fi

Change them to use more idiomatic construct:

    ! expression

Cc: Christian Couder <christian.couder@gmail.com>
Cc: Hariom Verma <hariom18599@gmail.com>
Signed-off-by: Nsengiyumva Wilberforce <nsengiyumvawilberforce@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1002-read-tree-m-u-2way.sh