push: return reject reasons as a bitset
Pass all rejection reasons back from transport_push(). The logic is simpler and more flexible with regard to providing useful feedback. Signed-off-by: Chris Rorvick <chris@rorvick.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
b0b00a3ee4
commit
10643d4ec3
@ -85,7 +85,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
|
||||
int send_all = 0;
|
||||
const char *receivepack = "git-receive-pack";
|
||||
int flags;
|
||||
int nonfastforward = 0;
|
||||
unsigned int reject_reasons;
|
||||
int progress = -1;
|
||||
|
||||
argv++;
|
||||
@ -223,7 +223,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
|
||||
ret |= finish_connect(conn);
|
||||
|
||||
if (!helper_status)
|
||||
transport_print_push_status(dest, remote_refs, args.verbose, 0, &nonfastforward);
|
||||
transport_print_push_status(dest, remote_refs, args.verbose, 0, &reject_reasons);
|
||||
|
||||
if (!args.dry_run && remote) {
|
||||
struct ref *ref;
|
||||
|
Reference in New Issue
Block a user