It shows the diff between 2 logs (with --patch by default), something like:
git diff --no-index <(git log -p --format=%s a) <(git log -p --format=%s b)
This is really useful to verify a rebase (or anything that rewrites history). Especially useful if an interactive rebase doesn't change the final state of a branch (as usual of squash).
An alias is not enough, as there's cases when the user may need to pass extra flags, such as:
-n3/-3 to limit the output of the logs. There's cases when each log needs an independent n value, so simply repeating the same -n twice is not enough.
--color-words, to make diff smaller.
--color-moved{,-ws}. Especially ws, because of its many values.
It shows the diff between 2
logs (with--patchby default), something like:This is really useful to verify a
rebase(or anything that rewrites history). Especially useful if an interactive rebase doesn't change the final state of a branch (as usual ofsquash).An
aliasis not enough, as there's cases when the user may need to pass extra flags, such as:-n3/-3to limit the output of the logs. There's cases when each log needs an independentnvalue, so simply repeating the same-ntwice is not enough.--color-words, to makediffsmaller.--color-moved{,-ws}. Especiallyws, because of its many values.