Current Branch Diff (ignore artifacts)
Quick start
- •Print the parent branch:
- •
git parent-branch
- •
- •Review the diff (merge-base comparison) while ignoring
.wat,.hir,.masm, and.lockfiles:- •
parent="$(git parent-branch)" - •
git diff --stat "$parent"...HEAD -- . ':(exclude)*.wat' ':(exclude)*.hir' ':(exclude)*.masm' ':(exclude)*.lock' - •
git diff "$parent"...HEAD -- . ':(exclude)*.wat' ':(exclude)*.hir' ':(exclude)*.masm' ':(exclude)*.lock'
- •
Notes
- •Prefer
"$parent"...HEAD(three dots) to compare against the merge-base with the parent branch. - •If you want a quick file list first:
- •
git diff --name-only "$parent"...HEAD -- . ':(exclude)*.wat' ':(exclude)*.hir' ':(exclude)*.masm' ':(exclude)*.lock'
- •