Re: [PATCH 4/7] commit-graph: fix generation number v2 overflow values

From
Junio C Hamano <hidden>
Date
2022-02-25 17:39:04
Derrick Stolee [off-list ref] writes:
quoted
quoted
+# 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.
Thread (1 message) 1 message, 1 author, last reply 2022-02-25
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help