]> git.proxmox.com Git - libgit2.git/blame - src/libgit2/worktree.h
Merge https://salsa.debian.org/debian/libgit2 into proxmox/bullseye
[libgit2.git] / src / libgit2 / 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
eae0bfdc
PP
10#include "common.h"
11
d3bc09e8
PS
12#include "git2/common.h"
13#include "git2/worktree.h"
14
15struct 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
ac3d33df
JK
21 /* Path to the where the worktree lives in the filesystem */
22 char *worktree_path;
d3bc09e8
PS
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;
20a368e2 31 /* Path to the parent's working directory */
d3bc09e8 32 char *parent_path;
2a503485 33
e579e0f7 34 unsigned int locked:1;
d3bc09e8
PS
35};
36
39abd3ad
PS
37char *git_worktree__read_link(const char *base, const char *file);
38
d3bc09e8 39#endif