Skip to content

Commit

Permalink
Updates descriptions of the git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Sep 7, 2019
1 parent aee22ed commit a5b2900
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/commands/git/cherry-pick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export interface CherryPickGitCommandArgs {

export class CherryPickGitCommand extends QuickCommandBase<State> {
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;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/git/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface FetchGitCommandArgs {

export class FetchGitCommand extends QuickCommandBase<State> {
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;

Expand Down
4 changes: 3 additions & 1 deletion src/commands/git/merge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export interface MergeGitCommandArgs {

export class MergeGitCommand extends QuickCommandBase<State> {
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;

Expand Down
4 changes: 3 additions & 1 deletion src/commands/git/pull.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export interface PullGitCommandArgs {

export class PullGitCommand extends QuickCommandBase<State> {
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;

Expand Down
4 changes: 3 additions & 1 deletion src/commands/git/push.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export interface PushGitCommandArgs {

export class PushGitCommand extends QuickCommandBase<State> {
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;

Expand Down
5 changes: 4 additions & 1 deletion src/commands/git/rebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,10 @@ export interface RebaseGitCommandArgs {

export class RebaseGitCommand extends QuickCommandBase<State> {
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;

Expand Down
2 changes: 1 addition & 1 deletion src/commands/git/reset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface ResetGitCommandArgs {

export class ResetGitCommand extends QuickCommandBase<State> {
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;

Expand Down
4 changes: 3 additions & 1 deletion src/commands/git/revert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ export interface RevertGitCommandArgs {

export class RevertGitCommand extends QuickCommandBase<State> {
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;

Expand Down
4 changes: 3 additions & 1 deletion src/commands/git/stash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export class StashGitCommand extends QuickCommandBase<State> {
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;

Expand Down
4 changes: 3 additions & 1 deletion src/commands/git/switch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export interface SwitchGitCommandArgs {

export class SwitchGitCommand extends QuickCommandBase<State> {
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;

Expand Down
1 change: 1 addition & 0 deletions src/commands/gitCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit a5b2900

Please sign in to comment.