mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-18 16:25:52 -05:00
chore(package): re-init package with commitizen and standard-release
This commit is contained in:
21
node_modules/track-changed/dist/changedGitFiles.js
generated
vendored
Normal file
21
node_modules/track-changed/dist/changedGitFiles.js
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
'use strict';
|
||||
|
||||
var _require = require('child_process'),
|
||||
execSync = _require.execSync;
|
||||
|
||||
module.exports = function changedGitFiles(opMode) {
|
||||
var getModifiedFilesInTreeCommand = 'git diff-tree -r --name-only --no-commit-id HEAD@{1} HEAD';
|
||||
|
||||
if (opMode === 'checkout') {
|
||||
var params = process.env.GIT_PARAMS.split(' ');
|
||||
|
||||
if (params[2] === '0') {
|
||||
// Exit early if this was only a file checkout, not a branch change ($3 == 1)
|
||||
return [];
|
||||
}
|
||||
getModifiedFilesInTreeCommand = 'git diff-tree -r --name-only --no-commit-id ' + params[0] + ' ' + params[1];
|
||||
}
|
||||
|
||||
var sources = execSync(getModifiedFilesInTreeCommand, { encoding: 'utf-8' });
|
||||
return sources.split('\n');
|
||||
};
|
||||
Reference in New Issue
Block a user