Re: [PATCH] diff-cache path restriction fix.
- From
Junio C Hamano <junkio@cox.net>
- Date
- May 25, 2005, 01:05 UTC
- Message-ID
- <7vekbwru6x.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.58.0505241757280.2307@ppc970.osdl.org>
>>>>> "LT" == Linus Torvalds <torvalds@osdl.org> writes:
LT> No, it's more broken than that.
I'll take a look at this later and submit an update, but an OT point I feel I should address.
LT> Btw, that "1 < argc" order is very unintuitive to most humans.
Yeah? Not to people around where I come from, I do not know why. It is not done for the assignment confusion avoidance "1==a".
The comparison lists things in the ascending order from left to right. The fact that 1 comes before argc on that line of code visually makes it obvious that I am talking about argc being larger than one and that is the reason. I'd write (argc < 4) not (4 > argc) for the same reason.