]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/repository.c
repository: factor out worktree check
authorPatrick Steinhardt <ps@pks.im>
Fri, 19 May 2017 06:59:46 +0000 (08:59 +0200)
committerPatrick Steinhardt <ps@pks.im>
Fri, 19 May 2017 07:01:21 +0000 (09:01 +0200)
commit9f9fd05f1cb9278a34a265c49c8567b526e48afd
tree38948cd625b15702c9289d2405ca663818ada825
parent32841973f1ee4d6432206b333a9907f3d14a5307
repository: factor out worktree check

The check whether a repository is a worktree or not is currently done
inside of `git_repository_open_ext`. As we want to extend this function
later on, pull it out into its own function `repo_is_worktree` to ease
working on it.
src/repository.c