Kaynağa Gözat

Updates descriptions of the git commands

main
Eric Amodio 5 yıl önce
ebeveyn
işleme
a5b29005de
11 değiştirilmiş dosya ile 28 ekleme ve 10 silme
  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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

@ -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 Dosyayı Görüntüle

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

Yükleniyor…
İptal
Kaydet