Skip to content

Commit

Permalink
fixup! adds no verify to merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kahole committed Jan 23, 2024
1 parent 7c9edfe commit b968cfd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": {
"name": "Kristian Andersen Hole"
},
"version": "0.6.57",
"version": "0.6.59",
"engines": {
"vscode": "^1.50.0"
},
Expand Down
6 changes: 3 additions & 3 deletions src/commands/mergingCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ export async function merging(repository: MagitRepository) {
const switches = [
{ key: '-f', name: '--ff-only', description: 'Fast-forward only' },
{ key: '-n', name: '--no-ff', description: 'No fast-forward' },
{ key: '-n', name: '--no-verify', description: 'Disable hooks' },
{ key: '-v', name: '--no-verify', description: 'Disable hooks' },
];
const whileMergingSwitches = [
{ key: '-n', name: '--no-verify', description: 'Disable hooks' },
];

if (repository.mergingState) {
return MenuUtil.showMenu(whileMergingMenu, { repository, switches });
return MenuUtil.showMenu(whileMergingMenu, { repository, switches: whileMergingSwitches });
} else {
return MenuUtil.showMenu(mergingMenu, { repository, switches: whileMergingSwitches });
return MenuUtil.showMenu(mergingMenu, { repository, switches });
}
}

Expand Down

0 comments on commit b968cfd

Please sign in to comment.