Blame src/worktree.h

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