summaryrefslogtreecommitdiff
path: root/include/git2/rebase.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2015-02-13 11:20:32 -0500
committerEdward Thomson <ethomson@microsoft.com>2015-02-13 11:20:32 -0500
commit49b8293c75d287f609eebae334519872784cd893 (patch)
treefeadd13968dd546bb01527175285c24d3234a241 /include/git2/rebase.h
parent92e87dd74974ccad8e0dbd8dd212bfc514ba441d (diff)
downloadlibgit2-49b8293c75d287f609eebae334519872784cd893.tar.gz
rebase: allow `NULL` branch to indicate `HEAD`
Don't require the branch to rebase, if given `NULL`, simply look up `HEAD`.
Diffstat (limited to 'include/git2/rebase.h')
-rw-r--r--include/git2/rebase.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/git2/rebase.h b/include/git2/rebase.h
index 1da3fb5aa..19f5cb8c9 100644
--- a/include/git2/rebase.h
+++ b/include/git2/rebase.h
@@ -133,7 +133,8 @@ GIT_EXTERN(int) git_rebase_init_options(
*
* @param out Pointer to store the rebase object
* @param repo The repository to perform the rebase
- * @param branch The terminal commit to rebase
+ * @param branch The terminal commit to rebase, or NULL to rebase the
+ * current branch
* @param upstream The commit to begin rebasing from, or NULL to rebase all
* reachable commits
* @param onto The branch to rebase onto, or NULL to rebase onto the given