Code

get_revision(): do not dig deeper when we know we are at the end.
authorLinus Torvalds <torvalds@osdl.org>
Sun, 5 Mar 2006 17:53:52 +0000 (09:53 -0800)
committerJunio C Hamano <junkio@cox.net>
Sun, 5 Mar 2006 21:35:41 +0000 (13:35 -0800)
commitea5ed3abce724725360be88663cec1add7547d46
tree5daa32b402057832930e466334967d2b9cc4e4e9
parent872d001f7f576b2d32f6278dc265d6449787b714
get_revision(): do not dig deeper when we know we are at the end.

This resurrects the special casing for "rev-list -n 1" which
avoided reading parents unnecessarily.

Signed-off-by: Junio C Hamano <junkio@cox.net>
revision.c