test with short max diff lines

This commit is contained in:
dogboydog 2020-07-08 20:58:15 -04:00 committed by Webber Takken
parent fdf71758a9
commit 72ff2983a1
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -50,15 +50,16 @@ export default class Versioning {
* Maximum number of lines to print when logging the git diff
*/
static get maxDiffLines() {
return 60;
return 5; // TODO: testing only, revert
}
/**
* Log up to maxDiffLines of the git diff.
*/
static async logDiff() {
const diffCommand = `git --no-pager diff | head -n ${this.maxDiffLines.toString()}`;
await System.run('sh', undefined, {
input: Buffer.from(`git --no-pager diff | head -n ${this.maxDiffLines.toString()}`),
input: Buffer.from(diffCommand),
silent: false,
});
}