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>2015-03-17 17:04:08 +0300
committerEdward Thomson <ethomson@microsoft.com>2015-04-20 23:22:27 +0300
commit30640aa9ad574761a3a69244c6194eb626e69d40 (patch)
tree02201b32fe3b2e3f8dbceaa83b018c0cb0ed48a2 /tests/rebase
parent08c45213b164fdb456c1b19b98039365c8f0cf98 (diff)
rebase: identify a rebase that has not started
In `git_rebase_operation_current()`, indicate when a rebase has not started (with `GIT_REBASE_NO_OPERATION`) rather than conflating that with the first operation being in-progress.
Diffstat (limited to 'tests/rebase')
-rw-r--r--tests/rebase/iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/rebase/iterator.c b/tests/rebase/iterator.c
index 2cff82ced..23272d51c 100644
--- a/tests/rebase/iterator.c
+++ b/tests/rebase/iterator.c
@@ -65,7 +65,7 @@ void test_rebase_iterator__iterates(void)
cl_git_pass(git_annotated_commit_from_ref(&upstream_head, repo, upstream_ref));
cl_git_pass(git_rebase_init(&rebase, repo, branch_head, upstream_head, NULL, NULL));
- test_operations(rebase, 0);
+ test_operations(rebase, GIT_REBASE_NO_OPERATION);
git_rebase_free(rebase);
cl_git_pass(git_rebase_open(&rebase, repo));