Re: [PATCH v5 06/28] Make git_path() aware of file relocation in $GIT_DIR

2014-03-09 Thread Eric Sunshine
On Fri, Mar 7, 2014 at 9:47 PM, Nguyễn Thái Ngọc Duy wrote: > We allow the user to relocate certain paths out of $GIT_DIR via > environment variables, e.g. GIT_OBJECT_DIRECTORY, GIT_INDEX_FILE and > GIT_GRAFT_FILE. Callers are not supposed to use git_path() or > git_pathdup() to get those paths. I

[PATCH v5 06/28] Make git_path() aware of file relocation in $GIT_DIR

2014-03-07 Thread Nguyễn Thái Ngọc Duy
We allow the user to relocate certain paths out of $GIT_DIR via environment variables, e.g. GIT_OBJECT_DIRECTORY, GIT_INDEX_FILE and GIT_GRAFT_FILE. Callers are not supposed to use git_path() or git_pathdup() to get those paths. Instead they must use get_object_directory(), get_index_file() and get