Crate git_wrapper

Source
Expand description

A wrapper around git(1) inspired by GitPython.

Modules§

x
Experimental stuff

Structs§

AbsoluteDirPath
A path which is canonicalized and exists.
BareRepository
Represents a bare repository
InvalidRefError
Invalid git reference was provided
PosixError
Struct containing a posix error code and an error message
Remote
Represents a git remote
Repository
The main repository object.

Enums§

CommitError
Error during committing
ConfigReadError
Failed to read config
ConfigSetError
Failed to change configuration file
InvalidCommitishError
Failed to resolve given value to a commit id
RefSearchError
Failed to find reference on remote
RepoError
Error during repository instantiation
StagingError
Failure to stage
StashingError
Error during stashing operation
SubtreeAddError
Failed to add subtree
SubtreePullError
Failed to pull changes from remote in to subtree
SubtreePushError
Failed to push changes from subtree to remote
SubtreeSplitError
Failed to split subtree

Constants§

EACCES
Permission denied
EINVAL
Invalid argument
ENOENT
No such file or directory

Functions§

config_file_set
Errors
ls_remote
Wrapper around git-ls-remote(1)
resolve_head
Return all .gitsubtrees files in the working directory.
setup_test_author
Exports NAME & EMAIL variables so git don’t complain if no user is setup
tags_from_remote
Returns all tags from a remote