Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat pull remote fetch #72

Merged
merged 3 commits into from
May 24, 2024
Merged

Feat pull remote fetch #72

merged 3 commits into from
May 24, 2024

Conversation

chengcyber
Copy link
Member

@chengcyber chengcyber commented May 24, 2024

Basic Checks

Have you run rush change for this change?

  • Yes
  • No

If No, please run rush change before, this is necessary.

If adding a new feature, the PR's description includes:

  • Reason for adding this feature
  • How to use
  • A basic example

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Summary

sparo fetch and sparo pull automatically clean up merged branches from the git configuration before actually invoking git fetch or pull

Detail

Assuming "nonexistent" branch is tracking in the git configuration. Before "sparo fetch" calls the actual "git fetch" command, it will automatically check the existence of the branch in remote, and remove it from the git configuration if it doesn't exist remotely, such as it has been merged into the main branch.

image

How to test it

Local

@chengcyber chengcyber mentioned this pull request May 24, 2024
7 tasks
@chengcyber chengcyber merged commit 08a6647 into main May 24, 2024
3 checks passed
@chengcyber chengcyber deleted the feat-pull-remote-fetch branch May 24, 2024 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants