瀏覽代碼

Fixes #1178: adds '--no-ff --no-commit' option to merge

main
Dmitry Ulupov 3 年之前
committed by Eric Amodio
父節點
當前提交
c5df5594de
共有 1 個文件被更改,包括 11 次插入1 次删除
  1. +11
    -1
      src/commands/git/merge.ts

+ 11
- 1
src/commands/git/merge.ts 查看文件

@ -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',

Loading…
取消
儲存