diff options
author | Andy Whitcroft <apw@shadowen.org> | 2007-11-09 23:32:10 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-09 21:14:10 -0800 |
commit | 28b9d6e548322755bbdb24c28a493862f61b1eba (patch) | |
tree | 8dd1105f04082020776aaf9cf399ce2fffa64d7f /send-pack.h | |
parent | 0d9d89f61c58f72d96585a61defb0634873c38ac (diff) | |
download | git-28b9d6e548322755bbdb24c28a493862f61b1eba.tar.gz git-28b9d6e548322755bbdb24c28a493862f61b1eba.tar.xz |
Teach send-pack a mirror mode
Existing "git push --all" is almost perfect for backing up to
another repository, except that "--all" only means "all
branches" in modern git, and it does not delete old branches and
tags that exist at the back-up repository that you have removed
from your local repository.
This teaches "git-send-pack" a new "--mirror" option. The
difference from the "--all" option are that (1) it sends all
refs, not just branches, and (2) it deletes old refs you no
longer have on the local side from the remote side.
Original patch by Junio C Hamano.
Signed-off-by: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'send-pack.h')
-rw-r--r-- | send-pack.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/send-pack.h b/send-pack.h index 7a24f71c7..8ff1dc353 100644 --- a/send-pack.h +++ b/send-pack.h @@ -5,6 +5,7 @@ struct send_pack_args { const char *receivepack; unsigned verbose:1, send_all:1, + send_mirror:1, force_update:1, use_thin_pack:1, dry_run:1; |