summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2012-02-23 00:43:41 +0200
committerJunio C Hamano <gitster@pobox.com>2012-02-22 18:17:39 -0800
commit6ddba5e241ebe484d53e3573c72386f487e25697 (patch)
tree836c5b5f1ee5d900e87ea9d60c32e576e219b68f /remote.h
parent676552464a871564835e1cb9d0484277b1b75e79 (diff)
downloadgit-6ddba5e241ebe484d53e3573c72386f487e25697.tar.gz
push: add '--prune' optionfc/push-prune
When pushing groups of refs to a remote, there is no simple way to remove old refs that still exist at the remote that is no longer updated from us. This will allow us to remove such refs from the remote. With this change, running this command $ git push --prune remote refs/heads/*:refs/remotes/laptop/* removes refs/remotes/laptop/foo from the remote if we do not have branch "foo" locally anymore. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote.h b/remote.h
index b3955983ba..9ad8eb6cc6 100644
--- a/remote.h
+++ b/remote.h
@@ -145,7 +145,8 @@ int branch_merge_matches(struct branch *, int n, const char *);
enum match_refs_flags {
MATCH_REFS_NONE = 0,
MATCH_REFS_ALL = (1 << 0),
- MATCH_REFS_MIRROR = (1 << 1)
+ MATCH_REFS_MIRROR = (1 << 1),
+ MATCH_REFS_PRUNE = (1 << 2)
};
/* Reporting of tracking info */