diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-03-31 22:04:20 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-31 22:04:20 -0700 |
commit | 5ed23425407c16c17ae07a4bc427c663ef82cd95 (patch) | |
tree | d13b8b846004d87d3bd73f1ab2043e9d35b0fd95 /cache.h | |
parent | 97fc5de7934376e978509677fec1debdbd14bcdf (diff) | |
parent | fb9c2d27039a23457cb9710d86e00c51dfb910dc (diff) | |
download | git-5ed23425407c16c17ae07a4bc427c663ef82cd95.tar.gz |
Merge branch 'jk/relative-directory-fix' into pupu
Some codepaths, including the refs API, get and keep relative
paths, that go out of sync when the process does chdir(2). The
chdir-notify API is introduced to let these codepaths adjust these
cached paths to the new current directory.
* jk/relative-directory-fix:
refs: use chdir_notify to update cached relative paths
set_work_tree: use chdir_notify
add chdir-notify API
trace.c: export trace_setup_key
set_git_dir: die when setenv() fails
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -480,7 +480,7 @@ extern const char *get_git_common_dir(void); extern char *get_object_directory(void); extern char *get_index_file(void); extern char *get_graft_file(void); -extern int set_git_dir(const char *path); +extern void set_git_dir(const char *path); extern int get_common_dir_noenv(struct strbuf *sb, const char *gitdir); extern int get_common_dir(struct strbuf *sb, const char *gitdir); extern const char *get_git_namespace(void); |