summaryrefslogtreecommitdiff
path: root/pack-check.c
diff options
context:
space:
mode:
authorLibravatar Nguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-04-22 20:01:25 +0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-04-22 14:09:37 -0700
commit15cdfea734ffce99d930e8e8016787b57ac47386 (patch)
tree0a13e0dab1ded2082126a48d874b0db95dd6fe41 /pack-check.c
parentdir.c: rename str(n)cmp_icase to fspath(n)cmp (diff)
downloadtgif-15cdfea734ffce99d930e8e8016787b57ac47386.tar.xz
path.c: add git_common_path() and strbuf_git_common_path()
These are mostly convenient functions to reduce code duplication. Most of the time, we should be able to get by with git_path() which handles $GIT_COMMON_DIR internally. However there are a few cases where we need to construct paths manually, for example some paths from a specific worktree. These functions will enable that. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack-check.c')
0 files changed, 0 insertions, 0 deletions