Giter Club home page Giter Club logo

code-status's Introduction

code-status

Check if any of your git projects needs attention:

Runs through all your code projects and checks the following:

  • Is the repo on the master branch?
  • Is the current branch ahead of the remote tracking branch?
  • Is the repo dirty (i.e. does it contain changes that have not yet been checked in)
  • Is there any untracked files in the repo?

If the answer is yes to any of those questions, this module will find and list the projects.

Build status js-standard-style

Installation

Install code-status globally:

npm install -g code-status

Example usage

$ code-status ~/code
DIR                BRANCH      AHEAD DIRTY UNTRACKED
after-all-results  master      0     1     0
airserver          master      0     3     10
connect            master      95    1     0
hubot-heroku       patch-1     0     1     0

Docs

code-status [paths] [options]

The paths defaults to the current directory if not specified. The code-status program will look through that directory and all sub-directories scanning for git projects.

Options:

  • --help - show the help
  • --version - show version
  • --simple - make the output more simple for easy grepping

License

MIT

code-status's People

Contributors

feross avatar pankajpatel avatar watson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

pankajpatel

code-status's Issues

Stability issues (exception) when using either the -c or --simple option

always crashes for a sub-module. example call:

code-status -c go/src/
/usr/local/lib/node_modules/code-status/index.js:65
if (err) throw err
^

Error: Command failed: git status -s
fatal: not a git repository: /Users/engelch/Documents/Wrk/MSK/MSKDeploy/HostSpecifics/mskdeploy-q/files/var/aspnetcore/ansible/MAC/../../.git/modules/ansible/MAC

at ChildProcess.exithandler (child_process.js:290:12)
at ChildProcess.emit (events.js:200:13)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) {

killed: false,
code: 128,
signal: null,
cmd: 'git status -s'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.