1.0.1 • Published 6 years ago

git-files-changed-reporter v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
6 years ago

git-files-changed-reporter

Reports files changed by commit's ids. We can pass a filter called blackList to omit certain files

The output is a bunch of files (named with the commit-id) with nameFiles changed.

Install

npm i git-files-changed-reporter

Example

const report = require('git-files-changed-reporter')
function blackList(file) {
    if(!file){
        return false;
    } else if (file.indexOf('.txt')> -1) {
        return false;
    } else if (file.indexOf('.json')> -1) {
        return false;
    } else{
        return true;
    }
}
let myReport = new report(repoPath, './tmp', blackList)
var arrayCommits = ['commitId1','commitId2']
myReport.generate('name', arrayCommits)
1.0.1

6 years ago

1.0.0

6 years ago