Thread (1 message) 1 message, 1 author, 2020-06-19

Re: [PATCH v2 2/2] git-prompt: include sparsity state as well

From: Junio C Hamano <hidden>
Date: 2020-06-19 16:36:01

Junio C Hamano [off-list ref] writes:
SZEDER Gábor [off-list ref] writes:
quoted
quoted
+	local sparse=""
+	if [ "$(git config --bool core.sparseCheckout)" == "true" ]; then
+	    sparse="|SPARSE"
Nit: indentation.
Also, do we want "==" there?  I thought [ ... ] (unlike [[ ... ]])
was a mere synonym for "test", to which "==" is a bug.
Ah, OK, this script is very bash specific so POSIX portability rules
do not matter.  == is just fine as = there.

Sorry for the noise.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help