]> git.proxmox.com Git - libgit2.git/blame - src/worktree.h
repository: rename `path_repository` and `path_gitlink`
[libgit2.git] / src / worktree.h
CommitLineData
d3bc09e8
PS
1/*
2 * Copyright (C) the libgit2 contributors. All rights reserved.
3 *
4 * This file is part of libgit2, distributed under the GNU GPL v2 with
5 * a Linking Exception. For full terms see the included COPYING file.
6 */
7#ifndef INCLUDE_worktree_h__
8#define INCLUDE_worktree_h__
9
10#include "git2/common.h"
11#include "git2/worktree.h"
12
13struct git_worktree {
14 /* Name of the working tree. This is the name of the
15 * containing directory in the `$PARENT/.git/worktrees/`
16 * directory. */
17 char *name;
18
19 /* Path to the .git file in the working tree's repository */
20 char *gitlink_path;
21 /* Path to the .git directory inside the parent's
22 * worktrees directory */
23 char *gitdir_path;
24 /* Path to the common directory contained in the parent
25 * repository */
26 char *commondir_path;
27 /* Path to the parent's .git directory */
28 char *parent_path;
2a503485
PS
29
30 int locked:1;
d3bc09e8
PS
31};
32
33#endif