git-diff-from
TypeScript icon, indicating that this package has built-in type declarations

1.1.40 • Public • Published

git-diff-from

git diff-tree
import * as path from "path";
import gitDiffFrom from 'git-diff-from';

let r = gitDiffFrom(5, null, {
	cwd: path.resolve('../../../test/demo/git1/sub'),
});

console.log(r);
[ { status: 'D',
    path: '2.txt',
    fullpath: 'D:/Users/Documents/The Project/nodejs-yarn/ws-git/test/demo/git1/2.txt' },
  { status: 'M',
    path: '3.txt',
    fullpath: 'D:/Users/Documents/The Project/nodejs-yarn/ws-git/test/demo/git1/3.txt' },
  { status: 'A',
    path: 'sub/sub.txt',
    fullpath: 'D:/Users/Documents/The Project/nodejs-yarn/ws-git/test/demo/git1/sub/sub.txt' },
  { status: 'A',
    path: 'カリギュラ.txt',
    fullpath: 'D:/Users/Documents/The Project/nodejs-yarn/ws-git/test/demo/git1/カリギュラ.txt' },
  { status: 'A',
    path: '卡利古拉.txt',
    fullpath: 'D:/Users/Documents/The Project/nodejs-yarn/ws-git/test/demo/git1/卡利古拉.txt' } ]

Package Sidebar

Install

npm i git-diff-from

Weekly Downloads

6

Version

1.1.40

License

ISC

Unpacked Size

20.8 kB

Total Files

6

Last publish

Collaborators

  • bluelovers