]> git.proxmox.com Git - libgit2.git/blob - src/worktree.h
Add BD on ca-certificates
[libgit2.git] / src / worktree.h
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 "common.h"
11
12 #include "git2/common.h"
13 #include "git2/worktree.h"
14
15 struct git_worktree {
16 /* Name of the working tree. This is the name of the
17 * containing directory in the `$PARENT/.git/worktrees/`
18 * directory. */
19 char *name;
20
21 /* Path to the where the worktree lives in the filesystem */
22 char *worktree_path;
23 /* Path to the .git file in the working tree's repository */
24 char *gitlink_path;
25 /* Path to the .git directory inside the parent's
26 * worktrees directory */
27 char *gitdir_path;
28 /* Path to the common directory contained in the parent
29 * repository */
30 char *commondir_path;
31 /* Path to the parent's working directory */
32 char *parent_path;
33
34 int locked:1;
35 };
36
37 char *git_worktree__read_link(const char *base, const char *file);
38
39 #endif