diff options
author | Chris Rorvick <chris@rorvick.com> | 2012-11-29 19:41:33 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-12-02 01:37:20 -0800 |
commit | 10643d4ec3b9c5898d93d1c20e98b2ff1906bf79 (patch) | |
tree | a0ce129a944ff6a088807e0bc4d5de5b4838dab7 /transport.h | |
parent | b0b00a3ee43b4813eb85728a482500f6422499fd (diff) | |
download | git-10643d4ec3b9c5898d93d1c20e98b2ff1906bf79.tar.gz |
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>
Diffstat (limited to 'transport.h')
-rw-r--r-- | transport.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/transport.h b/transport.h index 4a61c0c3f2..404b113014 100644 --- a/transport.h +++ b/transport.h @@ -140,11 +140,12 @@ int transport_set_option(struct transport *transport, const char *name, void transport_set_verbosity(struct transport *transport, int verbosity, int force_progress); -#define NON_FF_HEAD 1 -#define NON_FF_OTHER 2 +#define REJECT_NON_FF_HEAD 0x01 +#define REJECT_NON_FF_OTHER 0x02 + int transport_push(struct transport *connection, int refspec_nr, const char **refspec, int flags, - int * nonfastforward); + unsigned int * reject_reasons); const struct ref *transport_get_remote_refs(struct transport *transport); @@ -170,7 +171,7 @@ void transport_update_tracking_ref(struct remote *remote, struct ref *ref, int v int transport_refs_pushed(struct ref *ref); void transport_print_push_status(const char *dest, struct ref *refs, - int verbose, int porcelain, int *nonfastforward); + int verbose, int porcelain, unsigned int *reject_reasons); typedef void alternate_ref_fn(const struct ref *, void *); extern void for_each_alternate_ref(alternate_ref_fn, void *); |