Clean up builtin-update-ref's option parsing
authorKarl Hasselström <kha@treskal.com>
Mon, 2 Jun 2008 23:34:48 +0000 (01:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jun 2008 05:45:48 +0000 (22:45 -0700)
commit973a70ea4d9fc98e9ed20c261c5f6c8f1c1df2b0
tree83d3d5b1ad138a2e20abdd679b02b573a0de94ea
parent06f60e8edf1eb3a91e1af6f255bf46154168dd86
Clean up builtin-update-ref's option parsing

builtin-update-ref's option parsing was somewhat tricky to follow,
especially if the -d option was given. This patch cleans it upp a bit,
at the expense of making it a bit longer.

Signed-off-by: Karl Hasselström <kha@treskal.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-update-ref.c