Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-10-05 04:17:26 +0400
committerEdward Thomson <ethomson@microsoft.com>2014-10-27 05:59:50 +0300
commit979645a7195b8ce9895c18ee00c8913ea38f93eb (patch)
tree8b894001847a82bb24d6d0484980ae26fc6b7efa /include
parent18b00406c6427eb8c9d96864448474e1d85017de (diff)
rebase: updates based on PR comments
Diffstat (limited to 'include')
-rw-r--r--include/git2.h1
-rw-r--r--include/git2/rebase.h32
2 files changed, 16 insertions, 17 deletions
diff --git a/include/git2.h b/include/git2.h
index 5e032b2bf..41adbbad2 100644
--- a/include/git2.h
+++ b/include/git2.h
@@ -40,6 +40,7 @@
#include "git2/patch.h"
#include "git2/pathspec.h"
#include "git2/push.h"
+#include "git2/rebase.h"
#include "git2/refdb.h"
#include "git2/reflog.h"
#include "git2/refs.h"
diff --git a/include/git2/rebase.h b/include/git2/rebase.h
index 24d8fcf71..095975edb 100644
--- a/include/git2/rebase.h
+++ b/include/git2/rebase.h
@@ -84,21 +84,19 @@ typedef enum {
typedef struct {
/** The type of rebase operation. */
- unsigned int type;
+ git_rebase_operation_t type;
- union {
- /**
- * The commit ID being cherry-picked. This will be populated for
- * all operations except those of type `GIT_REBASE_OPERATION_EXEC`.
- */
- const git_oid id;
+ /**
+ * The commit ID being cherry-picked. This will be populated for
+ * all operations except those of type `GIT_REBASE_OPERATION_EXEC`.
+ */
+ const git_oid id;
- /**
- * The executable the user has requested be run. This will only
- * be populated for operations of type `GIT_REBASE_OPERATION_EXEC`.
- */
- const char *exec;
- };
+ /**
+ * The executable the user has requested be run. This will only
+ * be populated for operations of type `GIT_REBASE_OPERATION_EXEC`.
+ */
+ const char *exec;
} git_rebase_operation;
/**
@@ -115,7 +113,7 @@ GIT_EXTERN(int) git_rebase_init_options(
unsigned int version);
/**
- * Initializes a rebase operation to rebase the changes in `ours`
+ * Initializes a rebase operation to rebase the changes in `branch`
* relative to `upstream` onto another branch. To begin the rebase
* process, call `git_rebase_next`. When you have finished with this
* object, call `git_rebase_free`.
@@ -127,7 +125,7 @@ GIT_EXTERN(int) git_rebase_init_options(
* reachable commits
* @param onto The branch to rebase onto, or NULL to rebase onto the given
* upstream
- * @param signature The signature of the rebaser
+ * @param signature The signature of the rebaser (optional)
* @param opts Options to specify how rebase is performed
* @return Zero on success; -1 on failure.
*/
@@ -242,7 +240,7 @@ GIT_EXTERN(int) git_rebase_abort(
* been applied.
*
* @param rebase The rebase that is in-progress
- * @param signature The identity that is finishing the rebase
+ * @param signature The identity that is finishing the rebase (optional)
* @param opts Options to specify how rebase is finished
* @param Zero on success; -1 on error
*/
@@ -254,7 +252,7 @@ GIT_EXTERN(int) git_rebase_finish(
/**
* Frees the `git_rebase` object.
*
- * @param rebase The rebase that is in-progress
+ * @param rebase The rebase object
*/
GIT_EXTERN(void) git_rebase_free(git_rebase *rebase);