An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.2% on proxy.golang.org

proxy.golang.org : github.com/grailbio/grit

Grit copies commits from a source repository to a destination repository. It is intended to mirror projects residing in an private monorepo to an external project-specific Git repository. Usage: "grit -push src dst rules..." copies commits from the repository src to the repository dst, applying the the given rules and, if successful, pushes the changes to the destination repository. Repositories are named by url, prefix, and branch, with one of the following syntaxes: The default prefix is "" and the default branch is "master". When a prefix is specified, Grit considers constructs a view of the repository limited to the given prefix path. Changes outside of this prefix are discarded. If the flag -linearize is provided, then the source repository's history is linearized before copying commits. Linearization is done by ensuring that every commit has a single parent, so that the repository contains no merge commits. This is useful to ensure that grit can cleanly apply patches from repositories whose histories are not linear (e.g., when accepting patches from GitHub). Grit can apply a set of rewrite rules to source commits before they are copied to the destination repository. Rules are specified as "kind:param". Rules kinds are: Copy commits from the "project/" directory in repository ssh://[email protected]/foo.git to the root directory in the repository https://github.com/company/project.git. Diffs applied to files named BUILD are skipped. Assume we want to sync bidirectionally between two repositories: We usually develop on repoA and mirror changes to repoB. We also want to accept external contributions or upstream changes from repoB and push them to repoA. To sync from repoA to repoB, do the following: To sync from repoB to repo A, do the following:

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/grailbio/grit
License: Apache-2.0
Latest release: about 2 years ago
First release: almost 5 years ago
Namespace: github.com/grailbio
Stars: 61 on GitHub
Forks: 6 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 5 days ago

    Loading...
    Readme
    Loading...