GgitPush

GgitPush

Synopsis

                    GgitPush;
struct              GgitPushClass;
GgitPush *          ggit_push_new                       (GgitRemote *remote,
                                                         GError **error);
void                ggit_push_add_refspec               (GgitPush *push,
                                                         const gchar *refspec,
                                                         GError **error);
void                ggit_push_finish                    (GgitPush *push,
                                                         GError **error);
gboolean            ggit_push_is_unpack_ok              (GgitPush *push);

Object Hierarchy

  GObject
   +----GgitObjectFactoryBase
         +----GgitNative
               +----GgitPush

Implemented Interfaces

GgitPush implements GInitable.

Properties

  "remote"                   GgitRemote*           : Read / Write / Construct Only

Description

Details

GgitPush

typedef struct _GgitPush GgitPush;

Represents a git push.


struct GgitPushClass

struct GgitPushClass {
};

ggit_push_new ()

GgitPush *          ggit_push_new                       (GgitRemote *remote,
                                                         GError **error);

Creates a new GgitPush for remote.

remote :

a GgitRemote.

error :

a GError for error reporting, or NULL.

Returns :

a newly created GgitPush. [transfer full]

ggit_push_add_refspec ()

void                ggit_push_add_refspec               (GgitPush *push,
                                                         const gchar *refspec,
                                                         GError **error);

Adds a refspec to be pushed.

push :

a GgitPush.

refspec :

Refspec string.

error :

a GError for error reporting, or NULL.

ggit_push_finish ()

void                ggit_push_finish                    (GgitPush *push,
                                                         GError **error);

Actually push all given refspecs.

push :

a GgitPush.

error :

a GError for error reporting, or NULL.

ggit_push_is_unpack_ok ()

gboolean            ggit_push_is_unpack_ok              (GgitPush *push);

Checks if the remote side is successfully unpacked.

push :

a GgitPush.

Returns :

if the remote side is successfully unpacked.

Property Details

The "remote" property

  "remote"                   GgitRemote*           : Read / Write / Construct Only

The remote associated with this push.