show-ref: fix --exclude-existing
commitd8285af4810f655e28a0ae0e71a28a920bb6871f
authorJunio C Hamano <junkio@cox.net>
Mon, 18 Dec 2006 21:33:47 +0000 (18 13:33 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 18 Dec 2006 21:40:25 +0000 (18 13:40 -0800)
tree26e08675586644983dbf9891c0ded2b413bf6f60
parent0c7a97fafdaf7911183807019dbbb4d8c5079c4e
show-ref: fix --exclude-existing

Do not falsely document --filter-invalid which does not even exist.
Also make sure the line is long enough to have ^{} suffix before
checking for it.

Pointed out by Dscho.

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