Popularity
2.7
Declining
Activity
0.0
Stable
1
2
1

Monthly Downloads: 8
Programming language: Haskell
License: MIT License
Tags: Development    

infer-upstream alternatives and similar packages

Based on the "Development" category.
Alternatively, view infer-upstream alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of infer-upstream or a related project?

Add another 'Development' Package

README

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.

Installation

This package is available on hackage so can be installed with

cabal install infer-upstream

Alternatively, you can clone this repo and install with cabal

git clone https://github.com/silky/infer-upstream.git
cd infer-upstream
cabal install

Usage:

[email protected]> infer-upstream -r scirate3 -u silky
[email protected]:draftable/scirate3.git

Another usage:

[email protected]> cd scirate3
[email protected]> 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:

  • go into each one,
  • if it is a github repo,
  • look up the upstream repo,
  • if we find it,
  • set it as a new remote.

Usage:

[email protected]~> cd dev
[email protected]> git clone [email protected]:silky/infer-upstream
[email protected]> 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:

[email protected]>infer-upstream/fetch_upstreams.sh 
fetching upstream for Javascript-Voronoi ...
 1 file changed, 2 insertions(+), 2 deletions(-)

Notes:

  • This script assumes every folder in the ~/dev directory is the clone of a Github repository.
  • Github currently limits you to 60 unauthenticated API requests per hour; this approach uses one API request per folder.