Skip to content

feat: diff-log #1243

Description

@Rudxain

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions