mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
test with short max diff lines
This commit is contained in:
parent
fdf71758a9
commit
72ff2983a1
File diff suppressed because one or more lines are too long
@ -50,15 +50,16 @@ export default class Versioning {
|
|||||||
* Maximum number of lines to print when logging the git diff
|
* Maximum number of lines to print when logging the git diff
|
||||||
*/
|
*/
|
||||||
static get maxDiffLines() {
|
static get maxDiffLines() {
|
||||||
return 60;
|
return 5; // TODO: testing only, revert
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Log up to maxDiffLines of the git diff.
|
* Log up to maxDiffLines of the git diff.
|
||||||
*/
|
*/
|
||||||
static async logDiff() {
|
static async logDiff() {
|
||||||
|
const diffCommand = `git --no-pager diff | head -n ${this.maxDiffLines.toString()}`;
|
||||||
await System.run('sh', undefined, {
|
await System.run('sh', undefined, {
|
||||||
input: Buffer.from(`git --no-pager diff | head -n ${this.maxDiffLines.toString()}`),
|
input: Buffer.from(diffCommand),
|
||||||
silent: false,
|
silent: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user