diff options
author | Philip Kelley <phkelley@hotmail.com> | 2012-11-28 11:42:37 -0500 |
---|---|---|
committer | Philip Kelley <phkelley@hotmail.com> | 2012-11-28 11:42:37 -0500 |
commit | 613d5eb9391d6cc33c91f4dc9cdb5ede1885dc72 (patch) | |
tree | bd94a2a5ea154a3849114575368b7531f0d45024 /src/push.h | |
parent | 693021262ba0eeac2923bbce1b2262717019c807 (diff) | |
download | libgit2-613d5eb9391d6cc33c91f4dc9cdb5ede1885dc72.tar.gz |
Push! By schu, phkelley, and congyiwu, et al
Diffstat (limited to 'src/push.h')
-rw-r--r-- | src/push.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/push.h b/src/push.h new file mode 100644 index 000000000..1a2fb0260 --- /dev/null +++ b/src/push.h @@ -0,0 +1,41 @@ +/* + * Copyright (C) 2009-2012 the libgit2 contributors + * + * This file is part of libgit2, distributed under the GNU GPL v2 with + * a Linking Exception. For full terms see the included COPYING file. + */ +#ifndef INCLUDE_push_h__ +#define INCLUDE_push_h__ + +#include "git2.h" + +typedef struct push_spec { + char *lref; + char *rref; + + git_oid loid; + git_oid roid; + + bool force; +} push_spec; + +typedef struct push_status { + bool ok; + + char *ref; + char *msg; +} push_status; + +struct git_push { + git_repository *repo; + git_packbuilder *pb; + git_remote *remote; + git_vector specs; + bool report_status; + + /* report-status */ + bool unpack_ok; + git_vector status; +}; + +#endif |