I LIKE THESE NAMES
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 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120
diff --git a/src/attr.c b/src/attr.c
index 4993e3a..b575744 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -261,13 +261,13 @@ bool git_attr_cache__is_cached(
static int load_attr_file(
const char **data,
- git_futils_file_stamp *stamp,
+ git_futils_filestamp *stamp,
const char *filename)
{
int error;
git_buf content = GIT_BUF_INIT;
- error = git_futils_file_stamp_has_changed(stamp, filename);
+ error = git_futils_filestamp_check(stamp, filename);
if (error < 0)
return error;
@@ -380,7 +380,7 @@ int git_attr_cache__push_file(
git_attr_cache *cache = git_repository_attr_cache(repo);
git_attr_file *file = NULL;
git_blob *blob = NULL;
- git_futils_file_stamp stamp;
+ git_futils_filestamp stamp;
assert(filename && stack);
@@ -402,7 +402,7 @@ int git_attr_cache__push_file(
/* if not in cache, load data, parse, and cache */
if (source == GIT_ATTR_FILE_FROM_FILE) {
- git_futils_file_stamp_set(
+ git_futils_filestamp_set(
&stamp, file ? &file->cache_data.stamp : NULL);
error = load_attr_file(&content, &stamp, filename);
@@ -440,7 +440,7 @@ int git_attr_cache__push_file(
if (blob)
git_oid_cpy(&file->cache_data.oid, git_object_id((git_object *)blob));
else
- git_futils_file_stamp_set(&file->cache_data.stamp, &stamp);
+ git_futils_filestamp_set(&file->cache_data.stamp, &stamp);
finish:
/* push file onto vector if we found one*/
diff --git a/src/attr_file.h b/src/attr_file.h
index 7f6932f..3ea13d2 100644
--- a/src/attr_file.h
+++ b/src/attr_file.h
@@ -61,7 +61,7 @@ typedef struct {
bool pool_is_allocated;
union {
git_oid oid;
- git_futils_file_stamp stamp;
+ git_futils_filestamp stamp;
} cache_data;
} git_attr_file;
diff --git a/src/fileops.c b/src/fileops.c
index 524ba4e..2aceb11 100644
--- a/src/fileops.c
+++ b/src/fileops.c
@@ -671,8 +671,8 @@ int git_futils_cp_r(
return error;
}
-int git_futils_file_stamp_has_changed(
- git_futils_file_stamp *stamp, const char *path)
+int git_futils_filestamp_check(
+ git_futils_filestamp *stamp, const char *path)
{
struct stat st;
@@ -695,8 +695,8 @@ int git_futils_file_stamp_has_changed(
return 1;
}
-void git_futils_file_stamp_set(
- git_futils_file_stamp *target, const git_futils_file_stamp *source)
+void git_futils_filestamp_set(
+ git_futils_filestamp *target, const git_futils_filestamp *source)
{
assert(target);
diff --git a/src/fileops.h b/src/fileops.h
index ac0659d..25e62c5 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -277,7 +277,7 @@ typedef struct {
git_time_t mtime;
git_off_t size;
unsigned int ino;
-} git_futils_file_stamp;
+} git_futils_filestamp;
/**
* Compare stat information for file with reference info.
@@ -291,8 +291,8 @@ typedef struct {
* @param path Path to stat and check if changed
* @return 0 if up-to-date, 1 if out-of-date, <0 on error
*/
-extern int git_futils_file_stamp_has_changed(
- git_futils_file_stamp *stamp, const char *path);
+extern int git_futils_filestamp_check(
+ git_futils_filestamp *stamp, const char *path);
/**
* Set or reset file stamp data
@@ -304,7 +304,7 @@ extern int git_futils_file_stamp_has_changed(
* @param tgt File stamp to write to
* @param src File stamp to copy from or NULL to clear the target
*/
-extern void git_futils_file_stamp_set(
- git_futils_file_stamp *tgt, const git_futils_file_stamp *src);
+extern void git_futils_filestamp_set(
+ git_futils_filestamp *tgt, const git_futils_filestamp *src);
#endif /* INCLUDE_fileops_h__ */