Created
March 14, 2018 02:14
-
-
Save designfrontier/e903fe521f198be9176f389bf732fe8c to your computer and use it in GitHub Desktop.
opens all of the files that have changed between where you are in git and HEAD on master in sublime. Handy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const cp = require('child_process'); | |
cp.exec('git diff --name-only master HEAD', (err, out) => { | |
const files = [].concat('subl', '.', out.split('\n')).join(' '); | |
cp.exec(files, (e, o) => { | |
if (e) { | |
console.log(e, 0); | |
process.exit(1); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment