On 12/8/06, Junio C Hamano <junkio@cox.net> wrote:
I expect the index to differ from HEAD. The test is to avoid the mistake
of doing an empty commit.
But I don't have to pay for the overhead of comparing all
entries, if I can stop at first mismatch and exit with non-0.
I think it'd make a difference (at least some difference).
But, if we could avoid loading of the entries which
will be never compared anyway, the speedup will be
of course more substantial...
Will try to look at it.
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html