diff --git a/src/commands/git/cherry-pick.ts b/src/commands/git/cherry-pick.ts index fdff604..dd54ca5 100644 --- a/src/commands/git/cherry-pick.ts +++ b/src/commands/git/cherry-pick.ts @@ -36,7 +36,9 @@ export interface CherryPickGitCommandArgs { export class CherryPickGitCommand extends QuickCommandBase { constructor(args?: CherryPickGitCommandArgs) { - super('cherry-pick', 'cherry-pick', 'Cherry Pick', { description: 'via Terminal' }); + super('cherry-pick', 'cherry-pick', 'Cherry Pick', { + description: 'integrates changes from specified commits into the current branch' + }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/fetch.ts b/src/commands/git/fetch.ts index 57fcf63..628a905 100644 --- a/src/commands/git/fetch.ts +++ b/src/commands/git/fetch.ts @@ -21,7 +21,7 @@ export interface FetchGitCommandArgs { export class FetchGitCommand extends QuickCommandBase { constructor(args?: FetchGitCommandArgs) { - super('fetch', 'fetch', 'Fetch'); + super('fetch', 'fetch', 'Fetch', { description: 'fetches changes from one or more remotes' }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/merge.ts b/src/commands/git/merge.ts index 16d11c2..b3207aa 100644 --- a/src/commands/git/merge.ts +++ b/src/commands/git/merge.ts @@ -34,7 +34,9 @@ export interface MergeGitCommandArgs { export class MergeGitCommand extends QuickCommandBase { constructor(args?: MergeGitCommandArgs) { - super('merge', 'merge', 'Merge', { description: 'via Terminal' }); + super('merge', 'merge', 'Merge', { + description: 'integrates changes from a specified branch into the current branch' + }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/pull.ts b/src/commands/git/pull.ts index 5eedeae..fa9cc88 100644 --- a/src/commands/git/pull.ts +++ b/src/commands/git/pull.ts @@ -22,7 +22,9 @@ export interface PullGitCommandArgs { export class PullGitCommand extends QuickCommandBase { constructor(args?: PullGitCommandArgs) { - super('pull', 'pull', 'Pull'); + super('pull', 'pull', 'Pull', { + description: 'fetches and integrates changes from a remote into the current branch' + }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/push.ts b/src/commands/git/push.ts index 0aabeef..d7f79df 100644 --- a/src/commands/git/push.ts +++ b/src/commands/git/push.ts @@ -21,7 +21,9 @@ export interface PushGitCommandArgs { export class PushGitCommand extends QuickCommandBase { constructor(args?: PushGitCommandArgs) { - super('push', 'push', 'Push'); + super('push', 'push', 'Push', { + description: 'pushes changes from the current branch to a remote' + }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/rebase.ts b/src/commands/git/rebase.ts index 9f3b8ed..813033b 100644 --- a/src/commands/git/rebase.ts +++ b/src/commands/git/rebase.ts @@ -37,7 +37,10 @@ export interface RebaseGitCommandArgs { export class RebaseGitCommand extends QuickCommandBase { constructor(args?: RebaseGitCommandArgs) { - super('rebase', 'rebase', 'Rebase', { description: 'via Terminal' }); + super('rebase', 'rebase', 'Rebase', { + description: + 'integrates changes from a specified branch into the current branch, by changing the base of the branch and reapplying the commits on top' + }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/reset.ts b/src/commands/git/reset.ts index d6ec2df..6e56f26 100644 --- a/src/commands/git/reset.ts +++ b/src/commands/git/reset.ts @@ -28,7 +28,7 @@ export interface ResetGitCommandArgs { export class ResetGitCommand extends QuickCommandBase { constructor(args?: ResetGitCommandArgs) { - super('reset', 'reset', 'Reset', { description: 'via Terminal' }); + super('reset', 'reset', 'Reset', { description: 'resets the current branch to a specified commit' }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/revert.ts b/src/commands/git/revert.ts index 187a62e..9a83e1d 100644 --- a/src/commands/git/revert.ts +++ b/src/commands/git/revert.ts @@ -28,7 +28,9 @@ export interface RevertGitCommandArgs { export class RevertGitCommand extends QuickCommandBase { constructor(args?: RevertGitCommandArgs) { - super('revert', 'revert', 'Revert', { description: 'via Terminal' }); + super('revert', 'revert', 'Revert', { + description: 'undoes the changes of specified commits, by creating new commits with inverted changes' + }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/stash.ts b/src/commands/git/stash.ts index 4a11280..d319773 100644 --- a/src/commands/git/stash.ts +++ b/src/commands/git/stash.ts @@ -69,7 +69,9 @@ export class StashGitCommand extends QuickCommandBase { private _subcommand: string | undefined; constructor(args?: StashGitCommandArgs) { - super('stash', 'stash', 'Stash'); + super('stash', 'stash', 'Stash', { + description: 'shelves (stashes) changes from the working tree to be reapplied later' + }); if (args == null || args.state === undefined) return; diff --git a/src/commands/git/switch.ts b/src/commands/git/switch.ts index 7b30666..c7243d5 100644 --- a/src/commands/git/switch.ts +++ b/src/commands/git/switch.ts @@ -31,7 +31,9 @@ export interface SwitchGitCommandArgs { export class SwitchGitCommand extends QuickCommandBase { constructor(args?: SwitchGitCommandArgs) { - super('switch', 'switch', 'Switch'); + super('switch', 'switch', 'Switch', { + description: 'aka checkout, switches the current branch to a specified branch' + }); if (args == null || args.state === undefined) return; diff --git a/src/commands/gitCommands.ts b/src/commands/gitCommands.ts index 32ced5d..a78596e 100644 --- a/src/commands/gitCommands.ts +++ b/src/commands/gitCommands.ts @@ -41,6 +41,7 @@ export type GitCommandsCommandArgs = class PickCommandStep implements QuickPickStep { readonly buttons = []; readonly items: QuickCommandBase[]; + readonly matchOnDescription = true; readonly placeholder = 'Choose a git command'; readonly title = 'GitLens';