Expand description
Library for working with my improved git subtree schema.
The subtrees with their <prefix>
, <repository>
and a target to follow are tracked in
.gitsubtrees
files. Each .gitsubtrees
file contains information about tracked subtrees in
the same directory.
§.gitsubtrees
Format
[example]
version = 1 ; opional normally, required if no other key specified
upstream = https://example.com/ORIGINAL/example
origin = https://example.com/FORKED/example
follow = master ; some ref or a semver range
pre-releases = false ; if allow pulling pre-releases
Structs§
- Subtree
Config - Configuration for a subtree
- Subtrees
- Manages subtrees in a repository
Enums§
- Addition
Error - Failed adding a new subtree to a repository fails
- Config
Error - Failed reading or parsing a
.gitsubtrees
file. - Find
Error - Failed to find specified subtree
- Pull
Error - Failed to update a subtree from remote
- Push
Error - Failed to push subtree to remote
- Split
Error - Failed to split subtree
- Subtrees
Error - Failed to initialize
Subtrees
Functions§
- alias_
url - Aliases some well known urls to their initials.
- find_
latest_ version - Return the latest version from remote
- find_
latest_ version_ matching - Return the latest version from remote matching
semver::VersionReq