Skip to content

dev/sg: improve diff evaluation

Warren Gifford requested to merge sg-lint-repo-state into main

Created by: bobheadxi

Damn I'm not sure why this is so hard to get right, but this makes a minor improvement to running sg lint on main - instead of checking for the branch, we now check if merge-base is the same as your checked out ref, and check if your workspace is dirty.

Test plan

spew.Dump some diffs. Seems right

Merge request reports

Loading