Browse Source

Fixes counter when going back

main
Eric Amodio 1 year ago
parent
commit
583c5646d7
9 changed files with 27 additions and 9 deletions
  1. +3
    -1
      src/commands/git/branch.ts
  2. +3
    -1
      src/commands/git/fetch.ts
  3. +3
    -1
      src/commands/git/pull.ts
  4. +3
    -1
      src/commands/git/push.ts
  5. +3
    -1
      src/commands/git/remote.ts
  6. +3
    -1
      src/commands/git/stash.ts
  7. +3
    -1
      src/commands/git/switch.ts
  8. +3
    -1
      src/commands/git/tag.ts
  9. +3
    -1
      src/commands/git/worktree.ts

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

@ -218,7 +218,9 @@ export class BranchGitCommand extends QuickCommand {
skippedStepTwo = false;
if (context.repos.length === 1) {
skippedStepTwo = true;
state.counter++;
if (state.repo == null) {
state.counter++;
}
state.repo = context.repos[0];
} else {

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

@ -100,7 +100,9 @@ export class FetchGitCommand extends QuickCommand {
skippedStepOne = false;
if (context.repos.length === 1) {
skippedStepOne = true;
state.counter++;
if (state.repos == null) {
state.counter++;
}
state.repos = [context.repos[0]];
} else {

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

@ -107,7 +107,9 @@ export class PullGitCommand extends QuickCommand {
skippedStepOne = false;
if (context.repos.length === 1) {
skippedStepOne = true;
state.counter++;
if (state.repos == null) {
state.counter++;
}
state.repos = [context.repos[0]];
} else {

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

@ -114,7 +114,9 @@ export class PushGitCommand extends QuickCommand {
skippedStepOne = false;
if (context.repos.length === 1) {
skippedStepOne = true;
state.counter++;
if (state.repos == null) {
state.counter++;
}
state.repos = [context.repos[0]];
} else if (state.reference != null) {

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

@ -208,7 +208,9 @@ export class RemoteGitCommand extends QuickCommand {
skippedStepTwo = false;
if (context.repos.length === 1) {
skippedStepTwo = true;
state.counter++;
if (state.repo == null) {
state.counter++;
}
state.repo = context.repos[0];
} else {

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

@ -202,7 +202,9 @@ export class StashGitCommand extends QuickCommand {
skippedStepTwo = false;
if (context.repos.length === 1) {
skippedStepTwo = true;
state.counter++;
if (state.repo == null) {
state.counter++;
}
state.repo = context.repos[0];
} else {

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

@ -124,7 +124,9 @@ export class SwitchGitCommand extends QuickCommand {
skippedStepOne = false;
if (context.repos.length === 1) {
skippedStepOne = true;
state.counter++;
if (state.repos == null) {
state.counter++;
}
state.repos = [context.repos[0]];
} else {

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

@ -168,7 +168,9 @@ export class TagGitCommand extends QuickCommand {
skippedStepTwo = false;
if (context.repos.length === 1) {
skippedStepTwo = true;
state.counter++;
if (state.repo == null) {
state.counter++;
}
state.repo = context.repos[0];
} else {

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

@ -216,7 +216,9 @@ export class WorktreeGitCommand extends QuickCommand {
skippedStepTwo = false;
if (context.repos.length === 1) {
skippedStepTwo = true;
state.counter++;
if (state.repo == null) {
state.counter++;
}
state.repo = context.repos[0];
} else {

Loading…
Cancel
Save