Code

Merge branch 'fc/push-prune'
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2012 07:05:45 +0000 (23:05 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Feb 2012 07:05:45 +0000 (23:05 -0800)
* fc/push-prune:
  push: add '--prune' option
  remote: refactor code into alloc_delete_ref()
  remote: reorganize check_pattern_match()
  remote: use a local variable in match_push_refs()

Conflicts:
builtin/push.c

1  2 
builtin/push.c
transport.c

diff --cc builtin/push.c
index 6c373cf28bfc9d8409014d84eef5b886218b25ab,fdfb2c4512e98b0448f710bf3162ef948cd52ded..d315475f16c96a831a11c2aebf00ada40b7c9663
@@@ -260,7 -260,9 +260,9 @@@ int cmd_push(int argc, const char **arg
                OPT_STRING( 0 , "exec", &receivepack, "receive-pack", "receive pack program"),
                OPT_BIT('u', "set-upstream", &flags, "set upstream for git pull/status",
                        TRANSPORT_PUSH_SET_UPSTREAM),
 -              OPT_BOOLEAN(0, "progress", &progress, "force progress reporting"),
 +              OPT_BOOL(0, "progress", &progress, "force progress reporting"),
+               OPT_BIT(0, "prune", &flags, "prune locally removed refs",
+                       TRANSPORT_PUSH_PRUNE),
                OPT_END()
        };
  
diff --cc transport.c
Simple merge