Git::Raw::Worktree(3pm) | User Contributed Perl Documentation | Git::Raw::Worktree(3pm) |
Git::Raw::Worktree - Git worktree class
version 0.90
A Git::Raw::Worktree represents a git worktree.
WARNING: The API of this module is unstable and may change without warning (any change will be appropriately documented in the changelog).
Add a new worktree.
Lookup a worktree.
Retrieve the name of the worktree.
Retrieve the filesystem path for the worktree.
Open the worktree as a repository. Returns a Git::Raw::Repository object.
List all worktress for $repo.
Check if the worktree is locked. Returns the reason for locking or a falsy value.
Check if the worktree can be pruned. Valid fields for th %prune_opts hash are:
Prune flags. Valid values include:
Prune the working tree even if working tree is valid.
Prune the working tree even if it is locked.
Prune checked out working tree.
Lock the worktree with $reason.
Unlock the worktree.
Check if the worktree is valid. A valid worktree requirest both the git data structures inside the linked parent repository and the linked working copy to be present.
Prune the working tree. Pruning the working tree removes the git data structures on disk. See "is_prunable" for valid values of %prune_opts.
Jacques Germishuys <jacquesg@cpan.org>
Copyright 2018 Jacques Germishuys.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
2022-10-29 | perl v5.36.0 |