0.3.0 • Published 7 years ago

git-files v0.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

git-files

Get all modified, deleted, staged, and untracked files

const gitFiles = require('git-files')
console.log(gitFiles.all())

Specify the path type you want: full (default), relative, or absolute.

full paths give the file path from the root of the git directory, for example src/js/index.js.

relative gives the the file path relative to the current working directory.

absolute gives the entire file path from root.

Pass in the path type as a string.

gitFiles.staged('full') // or gitFiles.staged()
gitFiles.untracked('absolute')
gitFiles.deleted('relative')
0.3.0

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago