diff options
| author | Erik Aigner <aigner.erik@gmail.com> | 2019-04-21 21:36:36 +0200 |
|---|---|---|
| committer | Erik Aigner <aigner.erik@gmail.com> | 2019-04-21 22:04:08 +0200 |
| commit | e215f47579432e0d0597cdcafab2fafa2e37ca46 (patch) | |
| tree | 9e439b37eae978b301f098344de7a098ec5426b5 /include | |
| parent | b3923cf7199a93dadcb31e727eeca5b3c6e16361 (diff) | |
| download | libgit2-e215f47579432e0d0597cdcafab2fafa2e37ca46.tar.gz | |
rebase: orig_head and onto accessors
The rebase struct stores fields with information about the current
rebase process, which were not accessible via a public interface.
Accessors for getting the `orig_head` and `onto` branch
names and object ids have been added.
Diffstat (limited to 'include')
| -rw-r--r-- | include/git2/rebase.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/git2/rebase.h b/include/git2/rebase.h index f6b2e20ad..a97c16b05 100644 --- a/include/git2/rebase.h +++ b/include/git2/rebase.h @@ -200,6 +200,34 @@ GIT_EXTERN(int) git_rebase_open( const git_rebase_options *opts); /** + * Gets the original `HEAD` ref name for merge rebases. + * + * @return The original `HEAD` ref name + */ +GIT_EXTERN(const char *) git_rebase_orig_head_name(git_rebase *rebase); + +/** + * Gets the original `HEAD` id for merge rebases. + * + * @return The original `HEAD` id + */ +GIT_EXTERN(const git_oid *) git_rebase_orig_head_id(git_rebase *rebase); + +/** + * Gets the `onto` ref name for merge rebases. + * + * @return The `onto` ref name + */ +GIT_EXTERN(const char *) git_rebase_onto_name(git_rebase *rebase); + +/** + * Gets the `onto` id for merge rebases. + * + * @return The `onto` id + */ +GIT_EXTERN(const git_oid *) git_rebase_onto_id(git_rebase *rebase); + +/** * Gets the count of rebase operations that are to be applied. * * @param rebase The in-progress rebase |
