From: Junio C Hamano Date: Fri, 25 Feb 2022 17:38:55 GMT Subject: Re: [PATCH 4/7] commit-graph: fix generation number v2 overflow values Message-ID: In-Reply-To: <3d303ba3-36ed-4bda-e499-8b7da0dc1413@github.com> Derrick Stolee writes: >>> +# The remaining tests check timestamps that flow over >>> +# 32-bits. The graph_git_behavior checks can't take a >>> +# prereq, so just stop here if we are on a 32-bit machine. >>> + >>> +if ! test_have_prereq TIME_IS_64BIT >>> +then >>> + test_done >>> +fi >>> +if ! test_have_prereq TIME_T_IS_64BIT >>> +then >>> + test_done >>> +fi >> >> The above is OK but is there a reason why we cannot do >> >> if A || B >> then >> test_done >> fi >> >> here (I am assuming not, but in case I am missing the reason why it >> has to be separate)? > > Does not need to be separate. I just discovered the two different > prereqs for similar, but not exact, checks. I can swap this to an > or statement. I do not think a single condition with single test_done is necessarily better. I was just curious if there was anything subtle going on. Thanks.