diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 13:28:08 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 17:31:43 -0500 |
| commit | ca14942e19788bd01334af64554c3095f3ff0d4a (patch) | |
| tree | 9a05a7224d87e45b3ba2ac88501c66e4f0149ab9 /tests/checkout/tree.c | |
| parent | 3f024b6d5439eda83d8bebc197db062c4d6bdfeb (diff) | |
| download | libgit2-ca14942e19788bd01334af64554c3095f3ff0d4a.tar.gz | |
tests: declare functions statically where appropriate
Diffstat (limited to 'tests/checkout/tree.c')
| -rw-r--r-- | tests/checkout/tree.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c index 2f54f4e3e..de7dd7d9a 100644 --- a/tests/checkout/tree.c +++ b/tests/checkout/tree.c @@ -509,7 +509,7 @@ void test_checkout_tree__can_disable_pattern_match(void) cl_assert(git_fs_path_isfile("testrepo/branch_file.txt")); } -void assert_conflict( +static void assert_conflict( const char *entry_path, const char *new_content, const char *parent_sha, @@ -1034,7 +1034,8 @@ void test_checkout_tree__filemode_preserved_in_index(void) git_index_free(index); } -mode_t read_filemode(const char *path) +#ifndef GIT_WIN32 +static mode_t read_filemode(const char *path) { git_str fullpath = GIT_STR_INIT; struct stat st; @@ -1050,6 +1051,7 @@ mode_t read_filemode(const char *path) return result; } +#endif void test_checkout_tree__filemode_preserved_in_workdir(void) { @@ -1267,7 +1269,7 @@ void test_checkout_tree__case_changing_rename(void) git_commit_free(master_commit); } -void perfdata_cb(const git_checkout_perfdata *in, void *payload) +static void perfdata_cb(const git_checkout_perfdata *in, void *payload) { memcpy(payload, in, sizeof(git_checkout_perfdata)); } @@ -1296,7 +1298,7 @@ void test_checkout_tree__can_collect_perfdata(void) git_object_free(obj); } -void update_attr_callback( +static void update_attr_callback( const char *path, size_t completed_steps, size_t total_steps, |
