aboutsummaryrefslogtreecommitdiff
path: root/path.h
Commit message (Collapse)AuthorAge
* path: add repo_worktree_path and strbuf_repo_worktree_pathBrandon Williams2017-06-23
| | | | | | | | | Introduce 'repo_worktree_path' and 'strbuf_repo_worktree_path' which take a repository struct and constructs a path relative to the repository's worktree. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* path: add repo_git_path and strbuf_repo_git_pathBrandon Williams2017-06-23
| | | | | | | | | Introduce 'repo_git_path' and 'strbuf_repo_git_path' which take a repository struct and constructs a path into the repository's git directory. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* path: convert strbuf_git_common_path to take a 'struct repository'Brandon Williams2017-06-23
| | | | | Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
* path: create path.hBrandon Williams2017-06-23
Move all path related declarations from cache.h to a new path.h header file. This makes cache.h smaller and makes it easier to add new path related functions. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>