]> git.proxmox.com Git - libgit2.git/commit
repository: use `git_repository_item_path`
authorPatrick Steinhardt <ps@pks.im>
Fri, 11 Nov 2016 13:36:43 +0000 (14:36 +0100)
committerPatrick Steinhardt <ps@pks.im>
Mon, 13 Feb 2017 09:28:15 +0000 (10:28 +0100)
commitc5f3da9692f8de15550fed47e377c586f99f7c5a
tree11407a6919e4e94923c003bf8ee7c40ac5bf6642
parentcb3269c970db6766f8a953fee438b56119fd9847
repository: use `git_repository_item_path`

The recent introduction of the commondir variable of a repository
requires callers to distinguish whether their files are part of
the dot-git directory or the common directory shared between
multpile worktrees. In order to take the burden from callers and
unify knowledge on which files reside where, the
`git_repository_item_path` function has been introduced which
encapsulate this knowledge.

Modify most existing callers of `git_repository_path` to use
`git_repository_item_path` instead, thus making them implicitly
aware of the common directory.
src/attr.c
src/attr_file.h
src/blob.c
src/clone.c
src/ignore.c
src/ignore.h
src/repository.c
src/submodule.c
src/transports/local.c