diff options
author | Vincent Ambo <mail@tazj.in> | 2021-09-21T10·03+0300 |
---|---|---|
committer | Vincent Ambo <mail@tazj.in> | 2021-09-21T11·29+0300 |
commit | 43b1791ec601732ac31195df96781a848360a9ac (patch) | |
tree | daae8d638343295d2f1f7da955e556ef4c958864 /third_party/git/compat/precompose_utf8.h | |
parent | 2d8e7dc9d9c38127ec4ebd13aee8e8f586a43318 (diff) |
chore(3p/git): Unvendor git and track patches instead r/2903
This was vendored a long time ago under the expectation that keeping it in sync with cgit would be easier this way, but it has proven not to be a big issue. On the other hand, a vendored copy of git is an annoying maintenance burden. It is much easier to rebase the single (dottime) patch that we have. This removes the vendored copy of git and instead passes the git source code to cgit via `pkgs.srcOnly`, which includes the applied patch so that cgit can continue rendering dottime. Change-Id: If31f62dea7ce688fd1b9050204e9378019775f2b
Diffstat (limited to 'third_party/git/compat/precompose_utf8.h')
-rw-r--r-- | third_party/git/compat/precompose_utf8.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/third_party/git/compat/precompose_utf8.h b/third_party/git/compat/precompose_utf8.h deleted file mode 100644 index 6f843d3e1a12..000000000000 --- a/third_party/git/compat/precompose_utf8.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef PRECOMPOSE_UNICODE_H -#define PRECOMPOSE_UNICODE_H - -#include <sys/stat.h> -#include <sys/types.h> -#include <dirent.h> -#include <iconv.h> - - -typedef struct dirent_prec_psx { - ino_t d_ino; /* Posix */ - size_t max_name_len; /* See below */ - unsigned char d_type; /* available on all systems git runs on */ - - /* - * See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/dirent.h.html - * NAME_MAX + 1 should be enough, but some systems have - * NAME_MAX=255 and strlen(d_name) may return 508 or 510 - * Solution: allocate more when needed, see precompose_utf8_readdir() - */ - char d_name[NAME_MAX+1]; -} dirent_prec_psx; - - -typedef struct { - iconv_t ic_precompose; - DIR *dirp; - struct dirent_prec_psx *dirent_nfc; -} PREC_DIR; - -void precompose_argv(int argc, const char **argv); -void probe_utf8_pathname_composition(void); - -PREC_DIR *precompose_utf8_opendir(const char *dirname); -struct dirent_prec_psx *precompose_utf8_readdir(PREC_DIR *dirp); -int precompose_utf8_closedir(PREC_DIR *dirp); - -#ifndef PRECOMPOSE_UNICODE_C -#define dirent dirent_prec_psx -#define opendir(n) precompose_utf8_opendir(n) -#define readdir(d) precompose_utf8_readdir(d) -#define closedir(d) precompose_utf8_closedir(d) -#define DIR PREC_DIR -#endif /* PRECOMPOSE_UNICODE_C */ - -#endif /* PRECOMPOSE_UNICODE_H */ |