Crate git_stree

Source
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§

SubtreeConfig
Configuration for a subtree
Subtrees
Manages subtrees in a repository

Enums§

AdditionError
Failed adding a new subtree to a repository fails
ConfigError
Failed reading or parsing a .gitsubtrees file.
FindError
Failed to find specified subtree
PullError
Failed to update a subtree from remote
PushError
Failed to push subtree to remote
SplitError
Failed to split subtree
SubtreesError
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