summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-06-29 09:17:32 +0200
committerPatrick Steinhardt <ps@pks.im>2019-07-20 19:11:20 +0200
commite54343a4024e75dfaa940e652c2c9799d33634b2 (patch)
treeb483b313f4280db51a2a5aa29f53e6e9a2b2eb86 /tests
parent1f44079cae42864cb51d98ca57f5d1f4d8296693 (diff)
downloadlibgit2-e54343a4024e75dfaa940e652c2c9799d33634b2.tar.gz
fileops: rename to "futils.h" to match function signatures
Our file utils functions all have a "futils" prefix, e.g. `git_futils_touch`. One would thus naturally guess that their definitions and implementation would live in files "futils.h" and "futils.c", respectively, but in fact they live in "fileops.h". Rename the files to match expectations.
Diffstat (limited to 'tests')
-rw-r--r--tests/attr/repo.c2
-rw-r--r--tests/checkout/binaryunicode.c2
-rw-r--r--tests/checkout/checkout_helpers.c2
-rw-r--r--tests/checkout/conflict.c2
-rw-r--r--tests/checkout/crlf.c2
-rw-r--r--tests/checkout/head.c2
-rw-r--r--tests/checkout/index.c2
-rw-r--r--tests/checkout/nasty.c2
-rw-r--r--tests/checkout/tree.c2
-rw-r--r--tests/checkout/typechange.c2
-rw-r--r--tests/cherrypick/bare.c2
-rw-r--r--tests/cherrypick/workdir.c2
-rw-r--r--tests/clone/local.c2
-rw-r--r--tests/clone/nonetwork.c2
-rw-r--r--tests/clone/transport.c2
-rw-r--r--tests/config/conditionals.c2
-rw-r--r--tests/config/global.c2
-rw-r--r--tests/config/include.c2
-rw-r--r--tests/config/new.c2
-rw-r--r--tests/config/stress.c2
-rw-r--r--tests/config/write.c2
-rw-r--r--tests/core/buffer.c2
-rw-r--r--tests/core/copy.c2
-rw-r--r--tests/core/dirent.c2
-rw-r--r--tests/core/env.c2
-rw-r--r--tests/core/futils.c2
-rw-r--r--tests/core/mkdir.c2
-rw-r--r--tests/core/path.c2
-rw-r--r--tests/core/rmdir.c2
-rw-r--r--tests/core/stat.c2
-rw-r--r--tests/diff/diff_helpers.h2
-rw-r--r--tests/fetchhead/nonetwork.c2
-rw-r--r--tests/ignore/path.c2
-rw-r--r--tests/ignore/status.c2
-rw-r--r--tests/index/addall.c2
-rw-r--r--tests/iterator/index.c2
-rw-r--r--tests/iterator/iterator_helpers.c2
-rw-r--r--tests/iterator/tree.c2
-rw-r--r--tests/iterator/workdir.c2
-rw-r--r--tests/merge/files.c2
-rw-r--r--tests/merge/merge_helpers.c2
-rw-r--r--tests/merge/trees/automerge.c2
-rw-r--r--tests/merge/trees/modeconflict.c2
-rw-r--r--tests/merge/trees/renames.c2
-rw-r--r--tests/merge/trees/trivial.c2
-rw-r--r--tests/merge/trees/whitespace.c2
-rw-r--r--tests/merge/workdir/renames.c2
-rw-r--r--tests/merge/workdir/setup.c2
-rw-r--r--tests/merge/workdir/simple.c2
-rw-r--r--tests/merge/workdir/trivial.c2
-rw-r--r--tests/object/blob/fromstream.c2
-rw-r--r--tests/object/blob/write.c2
-rw-r--r--tests/object/raw/write.c2
-rw-r--r--tests/online/clone.c2
-rw-r--r--tests/online/fetchhead.c2
-rw-r--r--tests/pack/indexer.c2
-rw-r--r--tests/pack/packbuilder.c2
-rw-r--r--tests/refs/branches/delete.c2
-rw-r--r--tests/refs/delete.c2
-rw-r--r--tests/refs/pack.c2
-rw-r--r--tests/refs/reflog/messages.c2
-rw-r--r--tests/refs/reflog/reflog.c2
-rw-r--r--tests/refs/rename.c2
-rw-r--r--tests/repo/config.c2
-rw-r--r--tests/repo/discover.c2
-rw-r--r--tests/repo/env.c2
-rw-r--r--tests/repo/init.c2
-rw-r--r--tests/repo/open.c2
-rw-r--r--tests/repo/setters.c2
-rw-r--r--tests/repo/shallow.c2
-rw-r--r--tests/repo/state.c2
-rw-r--r--tests/repo/template.c2
-rw-r--r--tests/reset/hard.c2
-rw-r--r--tests/revert/bare.c2
-rw-r--r--tests/revert/workdir.c2
-rw-r--r--tests/stash/apply.c2
-rw-r--r--tests/stash/drop.c2
-rw-r--r--tests/stash/foreach.c2
-rw-r--r--tests/stash/save.c2
-rw-r--r--tests/stash/stash_helpers.c2
-rw-r--r--tests/status/submodules.c2
-rw-r--r--tests/status/worktree.c2
-rw-r--r--tests/status/worktree_init.c2
-rw-r--r--tests/submodule/add.c2
-rw-r--r--tests/submodule/escape.c2
-rw-r--r--tests/submodule/init.c2
-rw-r--r--tests/submodule/inject_option.c2
-rw-r--r--tests/submodule/lookup.c2
-rw-r--r--tests/submodule/nosubs.c2
-rw-r--r--tests/submodule/repository_init.c2
-rw-r--r--tests/submodule/status.c2
-rw-r--r--tests/submodule/update.c2
-rw-r--r--tests/win32/longpath.c2
93 files changed, 93 insertions, 93 deletions
diff --git a/tests/attr/repo.c b/tests/attr/repo.c
index 93d61b158..36beeb095 100644
--- a/tests/attr/repo.c
+++ b/tests/attr/repo.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/attr.h"
#include "attr.h"
#include "sysdir.h"
diff --git a/tests/checkout/binaryunicode.c b/tests/checkout/binaryunicode.c
index 5ba79213a..edb5cfaf5 100644
--- a/tests/checkout/binaryunicode.c
+++ b/tests/checkout/binaryunicode.c
@@ -2,7 +2,7 @@
#include "refs.h"
#include "repo/repo_helpers.h"
#include "path.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo;
diff --git a/tests/checkout/checkout_helpers.c b/tests/checkout/checkout_helpers.c
index 8256644db..95af5d396 100644
--- a/tests/checkout/checkout_helpers.c
+++ b/tests/checkout/checkout_helpers.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "checkout_helpers.h"
#include "refs.h"
-#include "fileops.h"
+#include "futils.h"
#include "index.h"
void assert_on_branch(git_repository *repo, const char *branch)
diff --git a/tests/checkout/conflict.c b/tests/checkout/conflict.c
index 3ad830f28..dae3f295e 100644
--- a/tests/checkout/conflict.c
+++ b/tests/checkout/conflict.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "git2/repository.h"
#include "git2/sys/index.h"
-#include "fileops.h"
+#include "futils.h"
#include "repository.h"
static git_repository *g_repo;
diff --git a/tests/checkout/crlf.c b/tests/checkout/crlf.c
index ff3a2dc64..65e13a6fd 100644
--- a/tests/checkout/crlf.c
+++ b/tests/checkout/crlf.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "checkout_helpers.h"
#include "../filter/crlf.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/checkout.h"
#include "repository.h"
diff --git a/tests/checkout/head.c b/tests/checkout/head.c
index 99061466f..799123086 100644
--- a/tests/checkout/head.c
+++ b/tests/checkout/head.c
@@ -2,7 +2,7 @@
#include "refs.h"
#include "repo/repo_helpers.h"
#include "path.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo;
diff --git a/tests/checkout/index.c b/tests/checkout/index.c
index 9aa41cc81..dcacdd5d3 100644
--- a/tests/checkout/index.c
+++ b/tests/checkout/index.c
@@ -2,7 +2,7 @@
#include "checkout_helpers.h"
#include "git2/checkout.h"
-#include "fileops.h"
+#include "futils.h"
#include "repository.h"
#include "remote.h"
#include "repo/repo_helpers.h"
diff --git a/tests/checkout/nasty.c b/tests/checkout/nasty.c
index 042fbba37..3897878ce 100644
--- a/tests/checkout/nasty.c
+++ b/tests/checkout/nasty.c
@@ -4,7 +4,7 @@
#include "git2/checkout.h"
#include "repository.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
static const char *repo_name = "nasty";
static git_repository *repo;
diff --git a/tests/checkout/tree.c b/tests/checkout/tree.c
index 47ded0f7c..380d25101 100644
--- a/tests/checkout/tree.c
+++ b/tests/checkout/tree.c
@@ -4,7 +4,7 @@
#include "git2/checkout.h"
#include "repository.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo;
static git_checkout_options g_opts;
diff --git a/tests/checkout/typechange.c b/tests/checkout/typechange.c
index 708af5956..db3f02a5c 100644
--- a/tests/checkout/typechange.c
+++ b/tests/checkout/typechange.c
@@ -3,7 +3,7 @@
#include "git2/checkout.h"
#include "path.h"
#include "posix.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo = NULL;
diff --git a/tests/cherrypick/bare.c b/tests/cherrypick/bare.c
index 135336507..50e8d8600 100644
--- a/tests/cherrypick/bare.c
+++ b/tests/cherrypick/bare.c
@@ -2,7 +2,7 @@
#include "clar_libgit2.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/cherrypick.h"
#include "../merge/merge_helpers.h"
diff --git a/tests/cherrypick/workdir.c b/tests/cherrypick/workdir.c
index 8f6644996..10e8c2d8b 100644
--- a/tests/cherrypick/workdir.c
+++ b/tests/cherrypick/workdir.c
@@ -2,7 +2,7 @@
#include "clar_libgit2.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/cherrypick.h"
#include "../merge/merge_helpers.h"
diff --git a/tests/clone/local.c b/tests/clone/local.c
index 941691814..b90ff3107 100644
--- a/tests/clone/local.c
+++ b/tests/clone/local.c
@@ -5,7 +5,7 @@
#include "buffer.h"
#include "path.h"
#include "posix.h"
-#include "fileops.h"
+#include "futils.h"
static int file_url(git_buf *buf, const char *host, const char *path)
{
diff --git a/tests/clone/nonetwork.c b/tests/clone/nonetwork.c
index 73528e578..2b8081f8a 100644
--- a/tests/clone/nonetwork.c
+++ b/tests/clone/nonetwork.c
@@ -4,7 +4,7 @@
#include "git2/sys/commit.h"
#include "../submodule/submodule_helpers.h"
#include "remote.h"
-#include "fileops.h"
+#include "futils.h"
#include "repository.h"
#define LIVE_REPO_URL "git://github.com/libgit2/TestGitRepository"
diff --git a/tests/clone/transport.c b/tests/clone/transport.c
index cccaae219..fa4f65357 100644
--- a/tests/clone/transport.c
+++ b/tests/clone/transport.c
@@ -3,7 +3,7 @@
#include "git2/clone.h"
#include "git2/transport.h"
#include "git2/sys/transport.h"
-#include "fileops.h"
+#include "futils.h"
static int custom_transport(
git_transport **out,
diff --git a/tests/config/conditionals.c b/tests/config/conditionals.c
index 8b9c0e6df..0e629e48f 100644
--- a/tests/config/conditionals.c
+++ b/tests/config/conditionals.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
#ifdef GIT_WIN32
# define ROOT_PREFIX "C:"
diff --git a/tests/config/global.c b/tests/config/global.c
index 4517caeb1..b64b71677 100644
--- a/tests/config/global.c
+++ b/tests/config/global.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
void test_config_global__initialize(void)
{
diff --git a/tests/config/include.c b/tests/config/include.c
index 44546933b..48261dd92 100644
--- a/tests/config/include.c
+++ b/tests/config/include.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
static git_config *cfg;
static git_buf buf;
diff --git a/tests/config/new.c b/tests/config/new.c
index bb3a2d9a8..2f5d83d52 100644
--- a/tests/config/new.c
+++ b/tests/config/new.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "filebuf.h"
-#include "fileops.h"
+#include "futils.h"
#include "posix.h"
#define TEST_CONFIG "git-new-config"
diff --git a/tests/config/stress.c b/tests/config/stress.c
index ad09c870f..4fb0f3b26 100644
--- a/tests/config/stress.c
+++ b/tests/config/stress.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "filebuf.h"
-#include "fileops.h"
+#include "futils.h"
#include "posix.h"
#define TEST_CONFIG "git-test-config"
diff --git a/tests/config/write.c b/tests/config/write.c
index bd0f5b277..78ed7f15b 100644
--- a/tests/config/write.c
+++ b/tests/config/write.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/sys/config.h"
#include "config.h"
diff --git a/tests/core/buffer.c b/tests/core/buffer.c
index b8a76b39c..58c98cb28 100644
--- a/tests/core/buffer.c
+++ b/tests/core/buffer.c
@@ -2,7 +2,7 @@
#include "buffer.h"
#include "buf_text.h"
#include "git2/sys/hashsig.h"
-#include "fileops.h"
+#include "futils.h"
#define TESTSTR "Have you seen that? Have you seeeen that??"
const char *test_string = TESTSTR;
diff --git a/tests/core/copy.c b/tests/core/copy.c
index 967748cc5..d31274808 100644
--- a/tests/core/copy.c
+++ b/tests/core/copy.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "path.h"
#include "posix.h"
diff --git a/tests/core/dirent.c b/tests/core/dirent.c
index a2448b498..08e0b11cf 100644
--- a/tests/core/dirent.c
+++ b/tests/core/dirent.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
typedef struct name_data {
int count; /* return count */
diff --git a/tests/core/env.c b/tests/core/env.c
index 7e7b3274d..3c34b2c4d 100644
--- a/tests/core/env.c
+++ b/tests/core/env.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "sysdir.h"
#include "path.h"
diff --git a/tests/core/futils.c b/tests/core/futils.c
index fce4848f5..82c9b24c7 100644
--- a/tests/core/futils.c
+++ b/tests/core/futils.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
/* Fixture setup and teardown */
void test_core_futils__initialize(void)
diff --git a/tests/core/mkdir.c b/tests/core/mkdir.c
index 8e52efb1e..ce11953f0 100644
--- a/tests/core/mkdir.c
+++ b/tests/core/mkdir.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "path.h"
#include "posix.h"
diff --git a/tests/core/path.c b/tests/core/path.c
index 058a710d0..2e5a4ab24 100644
--- a/tests/core/path.c
+++ b/tests/core/path.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
static void
check_dirname(const char *A, const char *B)
diff --git a/tests/core/rmdir.c b/tests/core/rmdir.c
index e00ec5c72..b436b97e0 100644
--- a/tests/core/rmdir.c
+++ b/tests/core/rmdir.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
static const char *empty_tmp_dir = "test_gitfo_rmdir_recurs_test";
diff --git a/tests/core/stat.c b/tests/core/stat.c
index 59a134649..7f5d66753 100644
--- a/tests/core/stat.c
+++ b/tests/core/stat.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "path.h"
#include "posix.h"
diff --git a/tests/diff/diff_helpers.h b/tests/diff/diff_helpers.h
index 520b654d3..af855ce68 100644
--- a/tests/diff/diff_helpers.h
+++ b/tests/diff/diff_helpers.h
@@ -1,4 +1,4 @@
-#include "fileops.h"
+#include "futils.h"
#include "git2/diff.h"
extern git_tree *resolve_commit_oid_to_tree(
diff --git a/tests/fetchhead/nonetwork.c b/tests/fetchhead/nonetwork.c
index 658943273..c23622392 100644
--- a/tests/fetchhead/nonetwork.c
+++ b/tests/fetchhead/nonetwork.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "fetchhead.h"
#include "fetchhead_data.h"
diff --git a/tests/ignore/path.c b/tests/ignore/path.c
index 5daf32901..864fba41b 100644
--- a/tests/ignore/path.c
+++ b/tests/ignore/path.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "posix.h"
#include "path.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo = NULL;
diff --git a/tests/ignore/status.c b/tests/ignore/status.c
index 2c32f4486..6082a8118 100644
--- a/tests/ignore/status.c
+++ b/tests/ignore/status.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/attr.h"
#include "ignore.h"
#include "attr.h"
diff --git a/tests/index/addall.c b/tests/index/addall.c
index 992cd8737..c62c3cfe6 100644
--- a/tests/index/addall.c
+++ b/tests/index/addall.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "../status/status_helpers.h"
#include "posix.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo = NULL;
#define TEST_DIR "addall"
diff --git a/tests/iterator/index.c b/tests/iterator/index.c
index 8c7efb253..25d8c2990 100644
--- a/tests/iterator/index.c
+++ b/tests/iterator/index.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "iterator.h"
#include "repository.h"
-#include "fileops.h"
+#include "futils.h"
#include "iterator_helpers.h"
#include "../submodule/submodule_helpers.h"
#include <stdarg.h>
diff --git a/tests/iterator/iterator_helpers.c b/tests/iterator/iterator_helpers.c
index 68d574126..b210dbb0c 100644
--- a/tests/iterator/iterator_helpers.c
+++ b/tests/iterator/iterator_helpers.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "iterator.h"
#include "repository.h"
-#include "fileops.h"
+#include "futils.h"
#include "iterator_helpers.h"
#include <stdarg.h>
diff --git a/tests/iterator/tree.c b/tests/iterator/tree.c
index 08df909a3..f7fb9a7ee 100644
--- a/tests/iterator/tree.c
+++ b/tests/iterator/tree.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "iterator.h"
#include "repository.h"
-#include "fileops.h"
+#include "futils.h"
#include "tree.h"
#include "../submodule/submodule_helpers.h"
#include "../diff/diff_helpers.h"
diff --git a/tests/iterator/workdir.c b/tests/iterator/workdir.c
index 9d3b54390..926cc6af0 100644
--- a/tests/iterator/workdir.c
+++ b/tests/iterator/workdir.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "iterator.h"
#include "repository.h"
-#include "fileops.h"
+#include "futils.h"
#include "../submodule/submodule_helpers.h"
#include "../merge/merge_helpers.h"
#include "iterator_helpers.h"
diff --git a/tests/merge/files.c b/tests/merge/files.c
index 27c96363f..6877f9848 100644
--- a/tests/merge/files.c
+++ b/tests/merge/files.c
@@ -6,7 +6,7 @@
#include "merge_helpers.h"
#include "conflict_data.h"
#include "refs.h"
-#include "fileops.h"
+#include "futils.h"
#include "diff_xdiff.h"
#define TEST_REPO_PATH "merge-resolve"
diff --git a/tests/merge/merge_helpers.c b/tests/merge/merge_helpers.c
index cddb41178..27f355f35 100644
--- a/tests/merge/merge_helpers.c
+++ b/tests/merge/merge_helpers.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "refs.h"
#include "tree.h"
#include "merge_helpers.h"
diff --git a/tests/merge/trees/automerge.c b/tests/merge/trees/automerge.c
index e4efba51c..dd26464fb 100644
--- a/tests/merge/trees/automerge.c
+++ b/tests/merge/trees/automerge.c
@@ -3,7 +3,7 @@
#include "git2/merge.h"
#include "buffer.h"
#include "merge.h"
-#include "fileops.h"
+#include "futils.h"
#include "../merge_helpers.h"
#include "../conflict_data.h"
diff --git a/tests/merge/trees/modeconflict.c b/tests/merge/trees/modeconflict.c
index e85e340b9..32866ea6d 100644
--- a/tests/merge/trees/modeconflict.c
+++ b/tests/merge/trees/modeconflict.c
@@ -4,7 +4,7 @@
#include "buffer.h"
#include "merge.h"
#include "../merge_helpers.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
diff --git a/tests/merge/trees/renames.c b/tests/merge/trees/renames.c
index fbcfd2d3b..e0b12af3d 100644
--- a/tests/merge/trees/renames.c
+++ b/tests/merge/trees/renames.c
@@ -4,7 +4,7 @@
#include "buffer.h"
#include "merge.h"
#include "../merge_helpers.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
diff --git a/tests/merge/trees/trivial.c b/tests/merge/trees/trivial.c
index 4a8255624..ac4f09f80 100644
--- a/tests/merge/trees/trivial.c
+++ b/tests/merge/trees/trivial.c
@@ -4,7 +4,7 @@
#include "merge.h"
#include "../merge_helpers.h"
#include "refs.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/sys/index.h"
static git_repository *repo;
diff --git a/tests/merge/trees/whitespace.c b/tests/merge/trees/whitespace.c
index fdb11253b..ce7703496 100644
--- a/tests/merge/trees/whitespace.c
+++ b/tests/merge/trees/whitespace.c
@@ -4,7 +4,7 @@
#include "buffer.h"
#include "merge.h"
#include "../merge_helpers.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
diff --git a/tests/merge/workdir/renames.c b/tests/merge/workdir/renames.c
index a8ee59a44..e8cd333af 100644
--- a/tests/merge/workdir/renames.c
+++ b/tests/merge/workdir/renames.c
@@ -4,7 +4,7 @@
#include "buffer.h"
#include "merge.h"
#include "../merge_helpers.h"
-#include "fileops.h"
+#include "futils.h"
#include "refs.h"
static git_repository *repo;
diff --git a/tests/merge/workdir/setup.c b/tests/merge/workdir/setup.c
index 3a8f9d987..ad29fcd94 100644
--- a/tests/merge/workdir/setup.c
+++ b/tests/merge/workdir/setup.c
@@ -3,7 +3,7 @@
#include "git2/merge.h"
#include "merge.h"
#include "refs.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
static git_index *repo_index;
diff --git a/tests/merge/workdir/simple.c b/tests/merge/workdir/simple.c
index a8d5d0be0..6b4e17492 100644
--- a/tests/merge/workdir/simple.c
+++ b/tests/merge/workdir/simple.c
@@ -6,7 +6,7 @@
#include "../merge_helpers.h"
#include "../conflict_data.h"
#include "refs.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
static git_index *repo_index;
diff --git a/tests/merge/workdir/trivial.c b/tests/merge/workdir/trivial.c
index 39d1ddc9b..c5bb7030e 100644
--- a/tests/merge/workdir/trivial.c
+++ b/tests/merge/workdir/trivial.c
@@ -5,7 +5,7 @@
#include "merge.h"
#include "../merge_helpers.h"
#include "refs.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
static git_index *repo_index;
diff --git a/tests/object/blob/fromstream.c b/tests/object/blob/fromstream.c
index 416b452c2..df229f98f 100644
--- a/tests/object/blob/fromstream.c
+++ b/tests/object/blob/fromstream.c
@@ -2,7 +2,7 @@
#include "buffer.h"
#include "posix.h"
#include "path.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
static char textual_content[] = "libgit2\n\r\n\0";
diff --git a/tests/object/blob/write.c b/tests/object/blob/write.c
index e6b67fb71..9a18d7cd4 100644
--- a/tests/object/blob/write.c
+++ b/tests/object/blob/write.c
@@ -2,7 +2,7 @@
#include "buffer.h"
#include "posix.h"
#include "path.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
diff --git a/tests/object/raw/write.c b/tests/object/raw/write.c
index a360f04c5..9bc127680 100644
--- a/tests/object/raw/write.c
+++ b/tests/object/raw/write.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "git2/odb_backend.h"
-#include "fileops.h"
+#include "futils.h"
#include "odb.h"
typedef struct object_data {
diff --git a/tests/online/clone.c b/tests/online/clone.c
index b7042f3d6..60aaeeb0f 100644
--- a/tests/online/clone.c
+++ b/tests/online/clone.c
@@ -3,7 +3,7 @@
#include "git2/clone.h"
#include "git2/cred_helpers.h"
#include "remote.h"
-#include "fileops.h"
+#include "futils.h"
#include "refs.h"
#define LIVE_REPO_URL "http://github.com/libgit2/TestGitRepository"
diff --git a/tests/online/fetchhead.c b/tests/online/fetchhead.c
index 7e9ca7e34..4f7be7e38 100644
--- a/tests/online/fetchhead.c
+++ b/tests/online/fetchhead.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "fetchhead.h"
#include "../fetchhead/fetchhead_data.h"
#include "git2/clone.h"
diff --git a/tests/pack/indexer.c b/tests/pack/indexer.c
index 08247ae46..422c3def4 100644
--- a/tests/pack/indexer.c
+++ b/tests/pack/indexer.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
#include <git2.h>
-#include "fileops.h"
+#include "futils.h"
#include "hash.h"
#include "iterator.h"
#include "vector.h"
diff --git a/tests/pack/packbuilder.c b/tests/pack/packbuilder.c
index 397d32e92..59eb3da61 100644
--- a/tests/pack/packbuilder.c
+++ b/tests/pack/packbuilder.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "pack.h"
#include "hash.h"
#include "iterator.h"
diff --git a/tests/refs/branches/delete.c b/tests/refs/branches/delete.c
index 553d80033..6093c7886 100644
--- a/tests/refs/branches/delete.c
+++ b/tests/refs/branches/delete.c
@@ -2,7 +2,7 @@
#include "refs.h"
#include "repo/repo_helpers.h"
#include "config/config_helpers.h"
-#include "fileops.h"
+#include "futils.h"
#include "reflog.h"
static git_repository *repo;
diff --git a/tests/refs/delete.c b/tests/refs/delete.c
index 4cc78aa9c..a33449641 100644
--- a/tests/refs/delete.c
+++ b/tests/refs/delete.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/reflog.h"
#include "git2/refdb.h"
#include "reflog.h"
diff --git a/tests/refs/pack.c b/tests/refs/pack.c
index 92312e26d..676fb1759 100644
--- a/tests/refs/pack.c
+++ b/tests/refs/pack.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/reflog.h"
#include "git2/refdb.h"
#include "reflog.h"
diff --git a/tests/refs/reflog/messages.c b/tests/refs/reflog/messages.c
index 5ca9ab31b..f8acd23d2 100644
--- a/tests/refs/reflog/messages.c
+++ b/tests/refs/reflog/messages.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/reflog.h"
#include "reflog.h"
#include "refs.h"
diff --git a/tests/refs/reflog/reflog.c b/tests/refs/reflog/reflog.c
index cf8c5c2d3..7e4b1ef4a 100644
--- a/tests/refs/reflog/reflog.c
+++ b/tests/refs/reflog/reflog.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/reflog.h"
#include "reflog.h"
diff --git a/tests/refs/rename.c b/tests/refs/rename.c
index 9933bee1d..b1b75cd64 100644
--- a/tests/refs/rename.c
+++ b/tests/refs/rename.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/reflog.h"
#include "reflog.h"
#include "refs.h"
diff --git a/tests/repo/config.c b/tests/repo/config.c
index a397ee525..6ca31f550 100644
--- a/tests/repo/config.c
+++ b/tests/repo/config.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
#include "sysdir.h"
-#include "fileops.h"
+#include "futils.h"
#include <ctype.h>
static git_buf path = GIT_BUF_INIT;
diff --git a/tests/repo/discover.c b/tests/repo/discover.c
index cc61c7125..c026eefc3 100644
--- a/tests/repo/discover.c
+++ b/tests/repo/discover.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "odb.h"
-#include "fileops.h"
+#include "futils.h"
#include "repository.h"
#define TEMP_REPO_FOLDER "temprepo/"
diff --git a/tests/repo/env.c b/tests/repo/env.c
index 9dafda198..024661692 100644
--- a/tests/repo/env.c
+++ b/tests/repo/env.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "sysdir.h"
#include <ctype.h>
diff --git a/tests/repo/init.c b/tests/repo/init.c
index 9879ef1f7..9eee830e2 100644
--- a/tests/repo/init.c
+++ b/tests/repo/init.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "repository.h"
#include "config.h"
#include "path.h"
diff --git a/tests/repo/open.c b/tests/repo/open.c
index 5c08a388c..edcf93fe1 100644
--- a/tests/repo/open.c
+++ b/tests/repo/open.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "sysdir.h"
#include <ctype.h>
diff --git a/tests/repo/setters.c b/tests/repo/setters.c
index ea6ef12b1..1fac627f6 100644
--- a/tests/repo/setters.c
+++ b/tests/repo/setters.c
@@ -5,7 +5,7 @@
#include "posix.h"
#include "util.h"
#include "path.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
diff --git a/tests/repo/shallow.c b/tests/repo/shallow.c
index b9a7b810b..adb7a9e44 100644
--- a/tests/repo/shallow.c
+++ b/tests/repo/shallow.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo;
diff --git a/tests/repo/state.c b/tests/repo/state.c
index fb8949775..afb361787 100644
--- a/tests/repo/state.c
+++ b/tests/repo/state.c
@@ -2,7 +2,7 @@
#include "buffer.h"
#include "refs.h"
#include "posix.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *_repo;
static git_buf _path;
diff --git a/tests/repo/template.c b/tests/repo/template.c
index 7ccd93521..3513190ac 100644
--- a/tests/repo/template.c
+++ b/tests/repo/template.c
@@ -1,6 +1,6 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "repo/repo_helpers.h"
#define CLEAR_FOR_CORE_FILEMODE(M) ((M) &= ~0177)
diff --git a/tests/reset/hard.c b/tests/reset/hard.c
index b6e91395b..1ea1d13fb 100644
--- a/tests/reset/hard.c
+++ b/tests/reset/hard.c
@@ -2,7 +2,7 @@
#include "posix.h"
#include "reset_helpers.h"
#include "path.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *repo;
static git_object *target;
diff --git a/tests/revert/bare.c b/tests/revert/bare.c
index fc7d03065..03cffbf3e 100644
--- a/tests/revert/bare.c
+++ b/tests/revert/bare.c
@@ -2,7 +2,7 @@
#include "clar_libgit2.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/revert.h"
#include "../merge/merge_helpers.h"
diff --git a/tests/revert/workdir.c b/tests/revert/workdir.c
index 9acf20d6f..2ad059d99 100644
--- a/tests/revert/workdir.c
+++ b/tests/revert/workdir.c
@@ -2,7 +2,7 @@
#include "clar_libgit2.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
#include "git2/revert.h"
#include "../merge/merge_helpers.h"
diff --git a/tests/stash/apply.c b/tests/stash/apply.c
index 063223ae6..5eb59545e 100644
--- a/tests/stash/apply.c
+++ b/tests/stash/apply.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "stash_helpers.h"
static git_signature *signature;
diff --git a/tests/stash/drop.c b/tests/stash/drop.c
index 89a0ade72..6b0895ba8 100644
--- a/tests/stash/drop.c
+++ b/tests/stash/drop.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "stash_helpers.h"
#include "refs.h"
diff --git a/tests/stash/foreach.c b/tests/stash/foreach.c
index 57dc8eeb4..fa3a9c906 100644
--- a/tests/stash/foreach.c
+++ b/tests/stash/foreach.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "stash_helpers.h"
struct callback_data
diff --git a/tests/stash/save.c b/tests/stash/save.c
index c38ef8274..362c704ea 100644
--- a/tests/stash/save.c
+++ b/tests/stash/save.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "stash_helpers.h"
static git_repository *repo;
diff --git a/tests/stash/stash_helpers.c b/tests/stash/stash_helpers.c
index 0398757c2..cd0cfbd0f 100644
--- a/tests/stash/stash_helpers.c
+++ b/tests/stash/stash_helpers.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "stash_helpers.h"
void setup_stash(git_repository *repo, git_signature *signature)
diff --git a/tests/status/submodules.c b/tests/status/submodules.c
index 33c9e5ab4..12edce2b2 100644
--- a/tests/status/submodules.c
+++ b/tests/status/submodules.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "status_helpers.h"
#include "../submodule/submodule_helpers.h"
diff --git a/tests/status/worktree.c b/tests/status/worktree.c
index 4c37a337c..7711b2da4 100644
--- a/tests/status/worktree.c
+++ b/tests/status/worktree.c
@@ -1,5 +1,5 @@
#include "clar_libgit2.h"
-#include "fileops.h"
+#include "futils.h"
#include "ignore.h"
#include "status_data.h"
#include "posix.h"
diff --git a/tests/status/worktree_init.c b/tests/status/worktree_init.c
index 9d5cfa5a3..40f1b2a31 100644
--- a/tests/status/worktree_init.c
+++ b/tests/status/worktree_init.c
@@ -1,7 +1,7 @@
#include "clar_libgit2.h"
#include "git2/sys/repository.h"
-#include "fileops.h"
+#include "futils.h"
#include "ignore.h"
#include "status_helpers.h"
#include "posix.h"
diff --git a/tests/submodule/add.c b/tests/submodule/add.c
index d5886776d..b251b331e 100644
--- a/tests/submodule/add.c
+++ b/tests/submodule/add.c
@@ -3,7 +3,7 @@
#include "path.h"
#include "submodule_helpers.h"
#include "config/config_helpers.h"
-#include "fileops.h"
+#include "futils.h"
#include "repository.h"
static git_repository *g_repo = NULL;
diff --git a/tests/submodule/escape.c b/tests/submodule/escape.c
index c36874296..08eb76809 100644
--- a/tests/submodule/escape.c
+++ b/tests/submodule/escape.c
@@ -2,7 +2,7 @@
#include "posix.h"
#include "path.h"
#include "submodule_helpers.h"
-#include "fileops.h"
+#include "futils.h"
#include "repository.h"
static git_repository *g_repo = NULL;
diff --git a/tests/submodule/init.c b/tests/submodule/init.c
index 84143e18f..a1d870b9e 100644
--- a/tests/submodule/init.c
+++ b/tests/submodule/init.c
@@ -2,7 +2,7 @@
#include "posix.h"
#include "path.h"
#include "submodule_helpers.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo = NULL;
diff --git a/tests/submodule/inject_option.c b/tests/submodule/inject_option.c
index 182f088be..cfc02acff 100644
--- a/tests/submodule/inject_option.c
+++ b/tests/submodule/inject_option.c
@@ -2,7 +2,7 @@
#include "posix.h"
#include "path.h"
#include "submodule_helpers.h"
-#include "fileops.h"
+#include "futils.h"
#include "repository.h"
static git_repository *g_repo = NULL;
diff --git a/tests/submodule/lookup.c b/tests/submodule/lookup.c
index 8bab1b93a..6f7506d2c 100644
--- a/tests/submodule/lookup.c
+++ b/tests/submodule/lookup.c
@@ -2,7 +2,7 @@
#include "submodule_helpers.h"
#include "git2/sys/repository.h"
#include "repository.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo = NULL;
diff --git a/tests/submodule/nosubs.c b/tests/submodule/nosubs.c
index ca2d1d693..e47ee3983 100644
--- a/tests/submodule/nosubs.c
+++ b/tests/submodule/nosubs.c
@@ -2,7 +2,7 @@
#include "clar_libgit2.h"
#include "posix.h"
-#include "fileops.h"
+#include "futils.h"
void test_submodule_nosubs__cleanup(void)
{
diff --git a/tests/submodule/repository_init.c b/tests/submodule/repository_init.c
index 7dd97bac0..9962af311 100644
--- a/tests/submodule/repository_init.c
+++ b/tests/submodule/repository_init.c
@@ -3,7 +3,7 @@
#include "path.h"
#include "submodule_helpers.h"
#include "config/config_helpers.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo = NULL;
diff --git a/tests/submodule/status.c b/tests/submodule/status.c
index 41fc17387..06595cc9a 100644
--- a/tests/submodule/status.c
+++ b/tests/submodule/status.c
@@ -2,7 +2,7 @@
#include "posix.h"
#include "path.h"
#include "submodule_helpers.h"
-#include "fileops.h"
+#include "futils.h"
#include "iterator.h"
static git_repository *g_repo = NULL;
diff --git a/tests/submodule/update.c b/tests/submodule/update.c
index 08a279a48..79353e575 100644
--- a/tests/submodule/update.c
+++ b/tests/submodule/update.c
@@ -2,7 +2,7 @@
#include "posix.h"
#include "path.h"
#include "submodule_helpers.h"
-#include "fileops.h"
+#include "futils.h"
static git_repository *g_repo = NULL;
diff --git a/tests/win32/longpath.c b/tests/win32/longpath.c
index bf5aac724..80ae08d8b 100644
--- a/tests/win32/longpath.c
+++ b/tests/win32/longpath.c
@@ -3,7 +3,7 @@
#include "git2/clone.h"
#include "clone.h"
#include "buffer.h"
-#include "fileops.h"
+#include "futils.h"
static git_buf path = GIT_BUF_INIT;