diff options
Diffstat (limited to 'src/repository.h')
-rw-r--r-- | src/repository.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/repository.h b/src/repository.h index a823bdcd9..d73e77d70 100644 --- a/src/repository.h +++ b/src/repository.h @@ -173,35 +173,6 @@ int git_repository_foreach_worktree(git_repository *repo, void *payload); /* - * Called for each HEAD. - * - * Can return either 0, causing the iteration over HEADs to - * continue, or a non-0 value causing the iteration to abort. The - * return value is passed back to the caller of - * `git_repository_foreach_head` - */ -typedef int (*git_repository_foreach_head_cb)(git_repository *repo, const char *path, void *payload); - -enum { - /* Skip enumeration of the main repository HEAD */ - GIT_REPOSITORY_FOREACH_HEAD_SKIP_REPO = (1u << 0), - /* Skip enumeration of worktree HEADs */ - GIT_REPOSITORY_FOREACH_HEAD_SKIP_WORKTREES = (1u << 1), -}; - -/* - * Iterate over repository and all worktree HEADs. - * - * This function will be called for the repository HEAD and for - * all HEADS of linked worktrees. For each HEAD, the callback is - * executed with the given payload. The return value equals the - * return value of the last executed callback function. - */ -int git_repository_foreach_head(git_repository *repo, - git_repository_foreach_head_cb cb, - int flags, void *payload); - -/* * Weak pointers to repository internals. * * The returned pointers do not need to be freed. Do not keep |