use skip_prefix() to avoid more magic numbers
commite3f1da982e4f14e7146964cb25a5011a3f41e84a
authorRené Scharfe <l.s.r@web.de>
Sat, 4 Oct 2014 18:54:50 +0000 (4 20:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Oct 2014 18:09:16 +0000 (7 11:09 -0700)
tree0b225c25e7b86a7a49b58f4fa4af500c5c36b40a
parent565301e41670825ceedf75220f2918ae76831240
use skip_prefix() to avoid more magic numbers

Continue where ae021d87 (use skip_prefix to avoid magic numbers) left off
and use skip_prefix() in more places for determining the lengths of prefix
strings to avoid using dependent constants and other indirect methods.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c
builtin/branch.c
builtin/cat-file.c
builtin/checkout.c
builtin/clean.c
builtin/commit.c
builtin/get-tar-commit-id.c
builtin/log.c
builtin/remote-ext.c
pretty.c