The infer-upstream package

[Tags: github, mit, program]

Find the repository from where a given repo was forked


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.1.1.0
Change logNone available
Dependenciesansi-wl-pprint (>=0.5 && <0.7), base (>=4.0 && <5.0), github (==0.8.*), optparse-applicative (>=0.5), parsec (>=3.0 && <3.2), process (>=1.1 && <1.3), text (>=0.10 && <0.12) [details]
LicenseMIT
AuthorNoon Silk
Maintainernoonsilk@gmail.com
CategoryDevelopment
Home pagehttps://github.com/silky/infer-upstream
Executablesinfer-upstream
UploadedFri Aug 15 03:28:28 UTC 2014 by NoonSilk
DistributionsNixOS:0.1.1.0
Downloads282 total (21 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
Successful builds reported [all 2 reports]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for infer-upstream-0.1.1.0

infer-upstream

Takes a repo name, and looks up the upstream repository. If there is an upstream repository, writes it to standard out. Otherwise writes nothing.

Usage:

noon@dev> infer-upstream -r scirate3 -u silky
git@github.com:draftable/scirate3.git

Another usage:

noon@dev> cd scirate3
noon@dev> git remote add upstream `infer-upstream --using-cwd`

A more interesting usage (and the reason I wrote this) is to use the upstream_everything.sh script. It performs the following task.

For all folders in a given directory:

Usage:

noon@~> cd dev
noon@dev> git clone git@github.com:silky/infer-upstream
noon@dev> infer-upstream/upstream_everything.sh
...

With upstream set on your repos, you can then run fetch_upstreams.sh, if you like, which will bring down any incoming changes and give print out a short summary.

Example:

noon@dev>infer-upstream/fetch_upstreams.sh 
fetching upstream for Javascript-Voronoi ...
 1 file changed, 2 insertions(+), 2 deletions(-)

Notes: