Add a remote.*.mirror configuration option
authorPaolo Bonzini <bonzini@gnu.org>
Thu, 17 Apr 2008 11:17:20 +0000 (13:17 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Apr 2008 01:49:22 +0000 (18:49 -0700)
commit84bb2dfd9f4873c9ca19537efe62219b09ec03bf
tree4490819e5489268b9fc9b9eec3da8ec87c8774fa
parent5909ca92d8b2c6a0534597f52f7733ff61a64d63
Add a remote.*.mirror configuration option

This patch adds a remote.*.mirror configuration option that,
when set, automatically puts git-push in --mirror mode for that
remote.

Furthermore, the option is set automatically by `git remote
add --mirror'.

The code in remote.c to parse remote.*.skipdefaultupdate
had a subtle problem: a comment in the code indicated that
special care was needed for boolean options, but this care was
not used in parsing the option.  Since I was touching related
code, I did this fix too.

[jc: and I further fixed up the "ignore boolean" code.]

Signed-off-by: Paolo Bonzini <bonzini@gnu.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-push.txt
Documentation/git-remote.txt
builtin-push.c
builtin-remote.c
remote.c
remote.h
t/t5517-push-mirror.sh