summaryrefslogtreecommitdiff
path: root/src/fileops.h
diff options
context:
space:
mode:
authorBen Straub <bstraub@github.com>2012-07-17 19:57:37 -0700
committerBen Straub <bstraub@github.com>2012-07-17 19:57:37 -0700
commit8651c10f1ed5d42ef0ad6e9e9f654799b4ffb39c (patch)
tree4da027729959be251b3cb72d950aca0aaa9c4f37 /src/fileops.h
parent3e026f1b4597c24848487422eb566a9434b5821d (diff)
downloadlibgit2-8651c10f1ed5d42ef0ad6e9e9f654799b4ffb39c.tar.gz
Checkout: obey core.symlinks.
Diffstat (limited to 'src/fileops.h')
-rw-r--r--src/fileops.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/fileops.h b/src/fileops.h
index b0c5779e5..594eacbd0 100644
--- a/src/fileops.h
+++ b/src/fileops.h
@@ -179,4 +179,14 @@ extern int git_futils_find_global_file(git_buf *path, const char *filename);
*/
extern int git_futils_find_system_file(git_buf *path, const char *filename);
+
+/**
+ * Create a "fake" symlink (text file containing the target path).
+ *
+ * @param new symlink file to be created
+ * @param old original symlink target
+ * @return 0 on success, -1 on error
+ */
+extern int git_futils_fake_symlink(const char *new, const char *old);
+
#endif /* INCLUDE_fileops_h__ */