Parcourir la source

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

main
Dmitry Ulupov il y a 3 ans
committed by Eric Amodio
Parent
révision
c5df5594de
1 fichiers modifiés avec 11 ajouts et 1 suppressions
  1. +11
    -1
      src/commands/git/merge.ts

+ 11
- 1
src/commands/git/merge.ts Voir le fichier

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

Chargement…
Annuler
Enregistrer