diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-06 13:40:11 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-06 13:40:11 -0700 |
commit | d8d33378ed06f1dfb5118a9b961d179e55420b44 (patch) | |
tree | f8c2ee1129c12518caf8aa2b75c0ba0ba3b04d62 /git-compat-util.h | |
parent | ed45be76345454ab74454382953cb2de868c8cdb (diff) | |
parent | c21919f1b25cf7008018e8724e92dc771057c268 (diff) | |
download | git-d8d33378ed06f1dfb5118a9b961d179e55420b44.tar.gz |
Merge branch 'ab/repo-settings-cleanup'
Code cleanup.
* ab/repo-settings-cleanup:
repository.h: don't use a mix of int and bitfields
repo-settings.c: simplify the setup
read-cache & fetch-negotiator: check "enum" values in switch()
environment.c: remove test-specific "ignore_untracked..." variable
wrapper.c: add x{un,}setenv(), and use xsetenv() in environment.c
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index 7c99eef661..141bb86351 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -878,6 +878,8 @@ void *xmemdupz(const void *data, size_t len); char *xstrndup(const char *str, size_t len); void *xrealloc(void *ptr, size_t size); void *xcalloc(size_t nmemb, size_t size); +void xsetenv(const char *name, const char *value, int overwrite); +void xunsetenv(const char *name); void *xmmap(void *start, size_t length, int prot, int flags, int fd, off_t offset); const char *mmap_os_err(void); void *xmmap_gently(void *start, size_t length, int prot, int flags, int fd, off_t offset); |