|
|
@ -29,7 +29,7 @@ interface Context { |
|
|
|
title: string; |
|
|
|
} |
|
|
|
|
|
|
|
type Flags = '--ff-only' | '--no-ff' | '--squash'; |
|
|
|
type Flags = '--ff-only' | '--no-ff' | '--squash' | '--no-commit' ; |
|
|
|
|
|
|
|
interface State { |
|
|
|
repo: string | Repository; |
|
|
@ -241,6 +241,16 @@ export class MergeGitCommand extends QuickCommand { |
|
|
|
context.destination, |
|
|
|
)}`,
|
|
|
|
}), |
|
|
|
FlagsQuickPickItem.create<Flags>(state.flags, ['--no-ff', '--no-commit'], { |
|
|
|
label: `No Fast-forward and no commit ${this.title}`, |
|
|
|
description: '--no-ff --no-commit', |
|
|
|
detail: `Will stop before making commit when merging ${Strings.pluralize( |
|
|
|
'commit', |
|
|
|
count, |
|
|
|
)} from ${GitReference.toString(state.reference)} into ${GitReference.toString( |
|
|
|
context.destination, |
|
|
|
)}`,
|
|
|
|
}), |
|
|
|
FlagsQuickPickItem.create<Flags>(state.flags, ['--squash'], { |
|
|
|
label: `Squash ${this.title}`, |
|
|
|
description: '--squash', |
|
|
|