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

Configuration for a subtree
Manages subtrees in a repository

Enums

Failed adding a new subtree to a repository fails
Failed reading or parsing a .gitsubtrees file.
Failed to find specified subtree
Failed to update a subtree from remote
Failed to push subtree to remote
Failed to split subtree
Failed to initialize Subtrees

Functions

Aliases some well known urls to their initials.
Return the latest version from remote
Return the latest version from remote matching semver::VersionReq