3.1.3 • Published 8 years ago

dirty-git v3.1.3

Weekly downloads
71
License
MIT
Repository
github
Last release
8 years ago

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

3.1.3

8 years ago

3.1.2

8 years ago

3.1.1

9 years ago

3.1.0

10 years ago

3.0.1

10 years ago

3.0.0

10 years ago

2.1.0

10 years ago

2.0.0

10 years ago

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago