diff options
| author | Patrick Steinhardt <ps@pks.im> | 2016-11-11 14:36:43 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2017-02-13 10:28:15 +0100 |
| commit | c5f3da9692f8de15550fed47e377c586f99f7c5a (patch) | |
| tree | 11407a6919e4e94923c003bf8ee7c40ac5bf6642 /src/attr_file.h | |
| parent | cb3269c970db6766f8a953fee438b56119fd9847 (diff) | |
| download | libgit2-c5f3da9692f8de15550fed47e377c586f99f7c5a.tar.gz | |
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.
Diffstat (limited to 'src/attr_file.h')
| -rw-r--r-- | src/attr_file.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/attr_file.h b/src/attr_file.h index 388ecf4c0..a9af2403a 100644 --- a/src/attr_file.h +++ b/src/attr_file.h @@ -15,7 +15,7 @@ #include "fileops.h" #define GIT_ATTR_FILE ".gitattributes" -#define GIT_ATTR_FILE_INREPO "info/attributes" +#define GIT_ATTR_FILE_INREPO "attributes" #define GIT_ATTR_FILE_SYSTEM "gitattributes" #define GIT_ATTR_FILE_XDG "attributes" |
