Simple readability fixes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102
diff --git a/tests-clar/object/tag/read.c b/tests-clar/object/tag/read.c
index d0140c0..2ab31e5 100644
--- a/tests-clar/object/tag/read.c
+++ b/tests-clar/object/tag/read.c
@@ -12,7 +12,9 @@ static git_repository *g_repo;
// Helpers
-static void ensure_tag_pattern_match(git_repository *repo, const char *pattern, const size_t expected_matches)
+static void ensure_tag_pattern_match(git_repository *repo,
+ const char *pattern,
+ const size_t expected_matches)
{
git_strarray tag_list;
int error = GIT_SUCCESS;
diff --git a/tests-clar/object/tag/write.c b/tests-clar/object/tag/write.c
index 27801f7..10db0f3 100644
--- a/tests-clar/object/tag/write.c
+++ b/tests-clar/object/tag/write.c
@@ -14,7 +14,10 @@ static git_repository *g_repo;
#ifndef GIT_WIN32
#include "odb.h"
-static void locate_loose_object(const char *repository_folder, git_object *object, char **out, char **out_folder)
+static void locate_loose_object(const char *repository_folder,
+ git_object *object,
+ char **out,
+ char **out_folder)
{
static const char *objects_folder = "objects/";
diff --git a/tests-clar/object/tree/frompath.c b/tests-clar/object/tree/frompath.c
index 3857d42..35d863e 100644
--- a/tests-clar/object/tree/frompath.c
+++ b/tests-clar/object/tree/frompath.c
@@ -24,7 +24,10 @@ void test_object_tree_frompath__cleanup(void)
cl_fixture_cleanup("testrepo.git");
}
-static void assert_tree_from_path(git_tree *root, const char *path, git_error expected_result, const char *expected_raw_oid)
+static void assert_tree_from_path(git_tree *root,
+ const char *path,
+ git_error expected_result,
+ const char *expected_raw_oid)
{
git_tree *containing_tree = NULL;
@@ -35,7 +38,7 @@ static void assert_tree_from_path(git_tree *root, const char *path, git_error ex
cl_assert(containing_tree != NULL && expected_result == GIT_SUCCESS);
- cl_assert(git_oid_streq(git_object_id((const git_object *)containing_tree), expected_raw_oid) == GIT_SUCCESS);
+ cl_git_pass(git_oid_streq(git_object_id((const git_object *)containing_tree), expected_raw_oid));
git_tree_free(containing_tree);
}
diff --git a/tests-clar/object/tree/write.c b/tests-clar/object/tree/write.c
index 7d8ed90..7916886 100644
--- a/tests-clar/object/tree/write.c
+++ b/tests-clar/object/tree/write.c
@@ -39,7 +39,10 @@ static int print_tree(git_repository *repo, const git_oid *tree_oid, int depth)
return GIT_SUCCESS;
}
-static void locate_loose_object(const char *repository_folder, git_object *object, char **out, char **out_folder)
+static void locate_loose_object(const char *repository_folder,
+ git_object *object,
+ char **out,
+ char **out_folder)
{
static const char *objects_folder = "objects/";
diff --git a/tests-clar/refs/normalize.c b/tests-clar/refs/normalize.c
index b10bda6..135d0a9 100644
--- a/tests-clar/refs/normalize.c
+++ b/tests-clar/refs/normalize.c
@@ -6,7 +6,9 @@
// Helpers
-static void ensure_refname_normalized(int is_oid_ref, const char *input_refname, const char *expected_refname)
+static void ensure_refname_normalized(int is_oid_ref,
+ const char *input_refname,
+ const char *expected_refname)
{
char buffer_out[GIT_REFNAME_MAX];
diff --git a/tests-clar/repo/discover.c b/tests-clar/repo/discover.c
index 9d0f083..072e326 100644
--- a/tests-clar/repo/discover.c
+++ b/tests-clar/repo/discover.c
@@ -23,7 +23,9 @@
#define ALTERNATE_MALFORMED_FOLDER3 DISCOVER_FOLDER "/alternate_malformed_repo3"
#define ALTERNATE_NOT_FOUND_FOLDER DISCOVER_FOLDER "/alternate_not_found_repo"
-static void ensure_repository_discover(const char *start_path, const char *ceiling_dirs, const char *expected_path)
+static void ensure_repository_discover(const char *start_path,
+ const char *ceiling_dirs,
+ const char *expected_path)
{
char found_path[GIT_PATH_MAX];
cl_git_pass(git_repository_discover(found_path, sizeof(found_path), start_path, 0, ceiling_dirs));