remove unused code
This commit is contained in:
parent
822f3b39c1
commit
c1be170c86
3 changed files with 0 additions and 29 deletions
10
dist/index.js
vendored
10
dist/index.js
vendored
|
@ -746,16 +746,6 @@ class GitCommandManager {
|
|||
return output.exitCode === 1;
|
||||
});
|
||||
}
|
||||
getChangedFiles(options) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const args = ['diff', '--name-only'];
|
||||
if (options) {
|
||||
args.push(...options);
|
||||
}
|
||||
const output = yield this.exec(args);
|
||||
return output.stdout.split('\n').filter(filename => filename != '');
|
||||
});
|
||||
}
|
||||
isDirty(untracked, pathspec) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const pathspecArgs = pathspec ? ['--', ...pathspec] : [];
|
||||
|
|
|
@ -128,16 +128,6 @@ function splitLines(multilineString: string): string[] {
|
|||
.filter(x => x !== '')
|
||||
}
|
||||
|
||||
export interface BranchFileChanges {
|
||||
additions: {
|
||||
path: string
|
||||
contents: string
|
||||
}[]
|
||||
deletions: {
|
||||
path: string
|
||||
}[]
|
||||
}
|
||||
|
||||
interface CreateOrUpdateBranchResult {
|
||||
action: string
|
||||
base: string
|
||||
|
|
|
@ -216,15 +216,6 @@ export class GitCommandManager {
|
|||
return output.exitCode === 1
|
||||
}
|
||||
|
||||
async getChangedFiles(options?: string[]): Promise<string[]> {
|
||||
const args = ['diff', '--name-only']
|
||||
if (options) {
|
||||
args.push(...options)
|
||||
}
|
||||
const output = await this.exec(args)
|
||||
return output.stdout.split('\n').filter(filename => filename != '')
|
||||
}
|
||||
|
||||
async isDirty(untracked: boolean, pathspec?: string[]): Promise<boolean> {
|
||||
const pathspecArgs = pathspec ? ['--', ...pathspec] : []
|
||||
// Check untracked changes
|
||||
|
|
Loading…
Reference in a new issue