diff options
| author | Vicent Martà <vicent@github.com> | 2012-11-29 12:18:05 -0800 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2012-11-29 12:18:05 -0800 |
| commit | f1e5c506b20bcc6bed3bbbf64f1f6b79be44316b (patch) | |
| tree | 9b67afe50fb83bcb81e151e10ecedf54ec89e5b4 /src/push.h | |
| parent | e2934db2c760846e14113bdc474935d701d92845 (diff) | |
| parent | 36c730daa08c4ebf85562ee0cc8d2ee3591d3cee (diff) | |
| download | libgit2-f1e5c506b20bcc6bed3bbbf64f1f6b79be44316b.tar.gz | |
Merge pull request #1110 from libgit2/features/push_rebased
Push! By schu, phkelley, and congyiwu
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 |
