Add support for Stash (Include Untracked)

This commit is contained in:
Raoul D'Cunha
2017-09-20 17:06:52 +12:00
parent f7962f0682
commit 21aac84936
5 changed files with 41 additions and 7 deletions

View File

@@ -842,10 +842,14 @@ export class Repository {
}
}
async createStash(message?: string): Promise<void> {
async createStash(message?: string, includeUntracked?: boolean): Promise<void> {
try {
const args = ['stash', 'save'];
if (includeUntracked) {
args.push('-u');
}
if (message) {
args.push('--', message);
}