@lerna/collect-uncommitted
Collect uncommitted changes to working tree for display in error messages
Last updated 5 years ago by evocateur .
MIT · Repository · Bugs · Original npm
$ cnpm install @lerna/collect-uncommitted 
SYNC missed versions from official npm registry.

@lerna/collect-uncommitted

Check git working tree status and collect uncommitted changes for display

Usage

const collectUncommitted = require("@lerna/collect-uncommitted");

// values listed here are their defaults
const options = {
  cwd: process.cwd(),
  log: require("npmlog"),
};

(async () => {
  try {
    const results = await collectUncommitted(options);
    console.log(`Uncommitted changes on CWD ${options.cwd}: ${results.join("\n")}`);
  } catch (err) {
    console.error(err.message);
  }
})();

Install lerna for access to the lerna CLI.

Current Tags

  • 6.0.3                                ...           latest (3 years ago)

5 Versions

  • 6.0.0-alpha.2                                ...           3 years ago
  • 6.0.3                                ...           3 years ago
  • 4.0.0                                ...           5 years ago
  • 3.14.2                                ...           6 years ago
  • 3.16.5                                ...           6 years ago
Maintainers (2)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org