git test fix
, git test run --search
#803
arxanas
started this conversation in
Show and tell
Replies: 1 comment
-
Kudos on |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
git test
has several exciting new features in the upcoming v0.7! Your feedback is appreciated, especially as we introduce a similarjj run
command to Jujutsu.Fixing
One common task is to apply formatters or linters to an entire stack of commits. This can be tedious to do by hand, especially because formatting changes tend to cause lots of merge conflicts.
git test fix
addresses this use-case while guaranteeing no merge conflicts. It also caches results and can be parallelized with the--jobs
option.Here's a demo of running rustfmt on all of the commits in a stack:
git-test-fix.mov
Searching
git test run
implements a search feature with the--search <strategy>
option. (For the common case of doing a binary search, you can also pass-b
/--bisect
as a shorthand.)Here's a demo (where the test command is implicitly
cargo clippy
):git-test-bisect.mov
And here's another demo where the search is parallelized with the
--jobs
option:git-bisect-j2-v2.mov
In comparison to
git bisect
:-i
/--interactive
flag.Beta Was this translation helpful? Give feedback.
All reactions