aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-05-24 12:29:35 -0700
committerJunio C Hamano <gitster@pobox.com>2024-05-24 12:29:36 -0700
commit48440f60a730b93b2a39449a69cb56db5e7114c7 (patch)
tree6547cae6f0c29cd3a8be08c3abb2e004b8fae3de /cache.h
parentb9b439e0e3a543ddb920e4cf8d3c9d53f730111f (diff)
parent1991703bdbb7839e3b43e0e0238f8efd76c8fe8d (diff)
downloadgit-48440f60a730b93b2a39449a69cb56db5e7114c7.tar.xz
Merge branch 'jc/fix-2.45.1-and-friends-for-2.39' into fixes/2.45.1/2.40
Revert overly aggressive "layered defence" that went into 2.45.1 and friends, which broke "git-lfs", "git-annex", and other use cases, so that we can rebuild necessary counterparts in the open. * jc/fix-2.45.1-and-friends-for-2.39: Revert "fsck: warn about symlink pointing inside a gitdir" Revert "Add a helper function to compare file contents" clone: drop the protections where hooks aren't run tests: verify that `clone -c core.hooksPath=/dev/null` works again Revert "core.hooksPath: add some protection while cloning" init: use the correct path of the templates directory again hook: plug a new memory leak ci: stop installing "gcc-13" for osx-gcc ci: avoid bare "gcc" for osx-gcc job ci: drop mention of BREW_INSTALL_PACKAGES variable send-email: avoid creating more than one Term::ReadLine object send-email: drop FakeTerm hack
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h14
1 files changed, 0 insertions, 14 deletions
diff --git a/cache.h b/cache.h
index 22be0f8540..587a9691b4 100644
--- a/cache.h
+++ b/cache.h
@@ -1791,20 +1791,6 @@ int copy_fd(int ifd, int ofd);
int copy_file(const char *dst, const char *src, int mode);
int copy_file_with_time(const char *dst, const char *src, int mode);
-/*
- * Compare the file mode and contents of two given files.
- *
- * If both files are actually symbolic links, the function returns 1 if the link
- * targets are identical or 0 if they are not.
- *
- * If any of the two files cannot be accessed or in case of read failures, this
- * function returns 0.
- *
- * If the file modes and contents are identical, the function returns 1,
- * otherwise it returns 0.
- */
-int do_files_match(const char *path1, const char *path2);
-
void write_or_die(int fd, const void *buf, size_t count);
void fsync_or_die(int fd, const char *);
int fsync_component(enum fsync_component component, int fd);