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

Only show meaningful changes in other branches #197

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Darcy3000s
Copy link
Contributor

Changes the status branch behavior, currently if there's a change in another branch, and that change gets reverted, it will still show as a 'difference' because we're using the log command

This change uses the intersection of the log and diff commands to better filter down for actual changes
We first run a log to find files which have had commits in other branches, then we diff those against status branch 0

So if a file is changed, and then reverted, the diff will show no changes, meaning either the same change has already been applied on main, or the change was since reverted in that branch

Prior to this change, if you change a file, and then decide against that change and revert it, the editor will continue to prevent you checking out that file in other branches

Our workflow at The Three Thousands uses "Main" as status branch 0, and all work is done in feature branches, that may not be the intention for this plugin (Though I imagine it is, given there's an option to "Diff Against Status Branch" which simply diffs against status branch 0) - if this doesn't conform to the expected workflow of the plugin, this change may not be suitable to merge.

… branch, but is the same as main, it has been reverted, and it safe to checkout and make changes to.
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.

1 participant