summaryrefslogtreecommitdiff
path: root/tests/worktree
Commit message (Collapse)AuthorAgeFilesLines
...
* worktree: implement `git_worktree_list`Patrick Steinhardt2017-02-131-0/+107
| | | | | | Add new module for working trees with the `git_worktree_list` function. The function lists names for all working trees of a certain repository.
* config: open configuration in commondirPatrick Steinhardt2017-02-131-0/+45
| | | | | | | A repository's configuartion file can always be found in the GIT_COMMON_DIR, which has been newly introduced. For normal repositories this does change nothing, but for working trees this change allows to access the shared configuration file.
* refdb: look for reflog in commondirPatrick Steinhardt2017-02-131-0/+65
|
* refdb: introduce commondir awarenessPatrick Steinhardt2017-02-131-0/+68
| | | | | | | | | | | The refdb_fs_backend is not aware of the git commondir, which stores common objects like the o bject database and packed/loose refereensces when worktrees are used. Make refdb_fs_backend aware of the common directory by introducing a new commonpath variable that points to the actual common path of the database and using it instead of the gitdir for the mentioned objects.
* repository: introduce is_worktree variablePatrick Steinhardt2017-02-131-0/+11
|
* repository: introduce commondir variablePatrick Steinhardt2017-02-131-0/+60
| | | | | | | | | The commondir variable stores the path to the common directory. The common directory is used to store objects and references shared across multiple repositories. A current use case is the newly introduced `git worktree` feature, which sets up a separate working copy, where the backing git object store and references are pointed to by the common directory.
* tests: implement worktree helpersPatrick Steinhardt2017-02-132-0/+41