summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-05-11 06:27:23 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-05-11 06:27:23 (GMT)
commit416449eaba1ebe48b1637d1f4b0e257604353373 (patch)
treeacdd7a65a7c6e162e1705ae3ceb0a8ed905c46e2 /utf8.c
parent1af57f5d321aeb95dbdbe48bdb2b0e1e37528323 (diff)
parent8ff06de10c12ef1f796fcefb96166133965d510e (diff)
downloadgit-416449eaba1ebe48b1637d1f4b0e257604353373.zip
git-416449eaba1ebe48b1637d1f4b0e257604353373.tar.gz
git-416449eaba1ebe48b1637d1f4b0e257604353373.tar.bz2
Merge branch 'jk/symlinked-dotgitx-cleanup'
Various test and documentation updates about .gitsomething paths that are symlinks. * jk/symlinked-dotgitx-cleanup: docs: document symlink restrictions for dot-files fsck: warn about symlinked dotfiles we'll open with O_NOFOLLOW t0060: test ntfs/hfs-obscured dotfiles t7450: test .gitmodules symlink matching against obscured names t7450: test verify_path() handling of gitmodules t7415: rename to expand scope fsck_tree(): wrap some long lines fsck_tree(): fix shadowed variable t7415: remove out-dated comment about translation
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utf8.c b/utf8.c
index 5b39361..de4ce5c 100644
--- a/utf8.c
+++ b/utf8.c
@@ -777,6 +777,11 @@ int is_hfs_dotgitattributes(const char *path)
return is_hfs_dot_str(path, "gitattributes");
}
+int is_hfs_dotmailmap(const char *path)
+{
+ return is_hfs_dot_str(path, "mailmap");
+}
+
const char utf8_bom[] = "\357\273\277";
int skip_utf8_bom(char **text, size_t len)