Browse Source

Updates descriptions of the git commands

main
Eric Amodio 5 years ago
parent
commit
a5b29005de
11 changed files with 28 additions and 10 deletions
  1. +3
    -1
      src/commands/git/cherry-pick.ts
  2. +1
    -1
      src/commands/git/fetch.ts
  3. +3
    -1
      src/commands/git/merge.ts
  4. +3
    -1
      src/commands/git/pull.ts
  5. +3
    -1
      src/commands/git/push.ts
  6. +4
    -1
      src/commands/git/rebase.ts
  7. +1
    -1
      src/commands/git/reset.ts
  8. +3
    -1
      src/commands/git/revert.ts
  9. +3
    -1
      src/commands/git/stash.ts
  10. +3
    -1
      src/commands/git/switch.ts
  11. +1
    -0
      src/commands/gitCommands.ts

+ 3
- 1
src/commands/git/cherry-pick.ts View File

@ -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;

+ 1
- 1
src/commands/git/fetch.ts View File

@ -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;

+ 3
- 1
src/commands/git/merge.ts View File

@ -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;

+ 3
- 1
src/commands/git/pull.ts View File

@ -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;

+ 3
- 1
src/commands/git/push.ts View File

@ -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;

+ 4
- 1
src/commands/git/rebase.ts View File

@ -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;

+ 1
- 1
src/commands/git/reset.ts View File

@ -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;

+ 3
- 1
src/commands/git/revert.ts View File

@ -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;

+ 3
- 1
src/commands/git/stash.ts View File

@ -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;

+ 3
- 1
src/commands/git/switch.ts View File

@ -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;

+ 1
- 0
src/commands/gitCommands.ts View File

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

Loading…
Cancel
Save