Commit b9b1f9f8a94ff7cc9bd3f4fe39651d0ab6dd391c

Etienne Samson 2017-07-14T03:21:02

tests: clarify which steps corresponds to each checks

diff --git a/tests/refs/reflog/messages.c b/tests/refs/reflog/messages.c
index 2c85339..9932f73 100644
--- a/tests/refs/reflog/messages.c
+++ b/tests/refs/reflog/messages.c
@@ -29,13 +29,13 @@ void test_refs_reflog_messages__setting_head_updates_reflog(void)
 
 	cl_git_pass(git_signature_now(&sig, "me", "foo@example.com"));
 
-	cl_git_pass(git_repository_set_head(g_repo, "refs/heads/haacked"));
+	cl_git_pass(git_repository_set_head(g_repo, "refs/heads/haacked")); /* 4 */
 	cl_git_pass(git_repository_set_head(g_repo, "refs/heads/unborn"));
 	cl_git_pass(git_revparse_single(&tag, g_repo, "tags/test"));
-	cl_git_pass(git_repository_set_head_detached(g_repo, git_object_id(tag)));
-	cl_git_pass(git_repository_set_head(g_repo, "refs/heads/haacked"));
-	cl_git_pass(git_repository_set_head(g_repo, "refs/tags/test"));
-	cl_git_pass(git_repository_set_head(g_repo, "refs/remotes/test/master"));
+	cl_git_pass(git_repository_set_head_detached(g_repo, git_object_id(tag))); /* 3 */
+	cl_git_pass(git_repository_set_head(g_repo, "refs/heads/haacked"));        /* 2 */
+	cl_git_pass(git_repository_set_head(g_repo, "refs/tags/test"));            /* 1 */
+	cl_git_pass(git_repository_set_head(g_repo, "refs/remotes/test/master"));  /* 0 */
 
 	reflog_check_entry(g_repo, GIT_HEAD_FILE, 4,
 		NULL, "refs/heads/haacked",