|
Packit Service |
20376f |
/*
|
|
Packit Service |
20376f |
* Copyright (C) the libgit2 contributors. All rights reserved.
|
|
Packit Service |
20376f |
*
|
|
Packit Service |
20376f |
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
Packit Service |
20376f |
* a Linking Exception. For full terms see the included COPYING file.
|
|
Packit Service |
20376f |
*/
|
|
Packit Service |
20376f |
#ifndef INCLUDE_worktree_h__
|
|
Packit Service |
20376f |
#define INCLUDE_worktree_h__
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
#include "git2/common.h"
|
|
Packit Service |
20376f |
#include "git2/worktree.h"
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
struct git_worktree {
|
|
Packit Service |
20376f |
/* Name of the working tree. This is the name of the
|
|
Packit Service |
20376f |
* containing directory in the `$PARENT/.git/worktrees/`
|
|
Packit Service |
20376f |
* directory. */
|
|
Packit Service |
20376f |
char *name;
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
/* Path to the .git file in the working tree's repository */
|
|
Packit Service |
20376f |
char *gitlink_path;
|
|
Packit Service |
20376f |
/* Path to the .git directory inside the parent's
|
|
Packit Service |
20376f |
* worktrees directory */
|
|
Packit Service |
20376f |
char *gitdir_path;
|
|
Packit Service |
20376f |
/* Path to the common directory contained in the parent
|
|
Packit Service |
20376f |
* repository */
|
|
Packit Service |
20376f |
char *commondir_path;
|
|
Packit Service |
20376f |
/* Path to the parent's working directory */
|
|
Packit Service |
20376f |
char *parent_path;
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
int locked:1;
|
|
Packit Service |
20376f |
};
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
char *git_worktree__read_link(const char *base, const char *file);
|
|
Packit Service |
20376f |
|
|
Packit Service |
20376f |
#endif
|