sourcegit-scm / sourcegit

Windows/macOS/Linux GUI client for GIT users
MIT License
1.15k stars 112 forks source link

[FEATURE] Add option to prune origin branches on pull #236

Closed brogan89 closed 3 months ago

brogan89 commented 3 months ago

Basically just to run git remote update origin --prune when you pull or fetch.

I really like the way git Fork will also show an little icon of local branches that dont have a remote counterpark anymore. e.g when PRs are merged and branch is deleted.

love-linger commented 3 months ago

It's not necessary to run an extra command after pull or fetch, because there's an argument --prune for git fetch and pull command to do this job.

Currently, there're two ways to prune remote dead branches.

I'll add an option to prune remote dead branches on pull popup.

love-linger commented 3 months ago

I'm sorry. Since pull in this app requires target remote branch, --prune is ignored (it does not fetch all changes from remote, but only target remote branch). I've reverted commit ab4fd081b2c3ddf78cad530e1b4be5872a15d3e8