feat: `diff-log`
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 18.1k
- Forks
- 1.2k
- Avg merge
- 5d 17h
- Merged PRs (30d)
- 1
Description
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/-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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the existing git-extras command entry points and inspect how commands parse arguments and invoke Git. Define the diff-log command around two log inputs, with patch output by default and support for independent log limits plus the listed diff flags. Done means it can compare rewritten histories and pass those options through as described.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git, shell
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 54/100