dirty-git
List git repos that have dirty working directories (uncommited changes)
Last updated 5 years ago by mmckegg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dirty-git -g
SYNC missed versions from official npm registry.

dirty-git

npm npm license npm downloads

List git repos that have dirty working directories (uncommited changes)

Install via npm

$ npm install --global dirty-git

Command Line

$ cd ~/Code # navigate to starting point
$ dirty-git [options] [path]

CLI Options

  -i, --ignored    include ignored files
  -u, --untracked  include all untracked file paths
  -l, --symlinks   include symlinked repos in results
  -r  --unreleased force include repos that have no current tag
  -s, --staged     show stats for staged files
  -t, --tree       show stats for work tree files
  -d, --depth <n>  nested sub folders to search (default: 3)

API

var dirtyGit = require( 'dirty-git' )
var stream = dirtyGit( process.cwd(), options )
  .on( 'readable', function() {
    var repo = null
    while( repo = this.read() ) {
      // do things with it...
    }
  })
// Repository data structure
// (emitted by the dirtyGit stream)
{
  branch: { index: 'master', remote: 'origin/master' },
  status: [
    { index: 'M', tree: ' ', path: '...' },
    ...
  ],
  symlink: true | false,
  path: '...',
  relativePath: '...',
  error: null,
}

Contributors

Current Tags

  • 3.1.3                                ...           latest (5 years ago)

12 Versions

  • 3.1.3                                ...           5 years ago
  • 3.1.2                                ...           5 years ago
  • 3.1.1                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (5)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |