File: worktree_helpers.h

package info (click to toggle)
libgit2 1.1.0%2Bdfsg.1-4%2Bdeb11u2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 53,324 kB
  • sloc: ansic: 173,567; sh: 562; python: 351; php: 65; makefile: 50
file content (11 lines) | stat: -rw-r--r-- 334 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
typedef struct {
	const char *reponame;
	const char *worktreename;
	git_repository *repo;
	git_repository *worktree;
} worktree_fixture;

#define WORKTREE_FIXTURE_INIT(repo, worktree) { (repo), (worktree), NULL, NULL }

void cleanup_fixture_worktree(worktree_fixture *fixture);
void setup_fixture_worktree(worktree_fixture *fixture);