git: Add option to use difftastic as diff tool#2850
git: Add option to use difftastic as diff tool#2850sumnerevans merged 1 commit intonix-community:masterfrom
Conversation
|
Pretty sure it would be good to only allow to enable one of either |
16d6d55 to
5d134df
Compare
sumnerevans
left a comment
There was a problem hiding this comment.
sorry, one more thing
|
Also, please squash your commits to a single one that follows the contributing guide for commit messages. |
|
Thanks for the review, I fixed it. Sorry for the constant back-and-forth, hopefully this is good now 😅 |
Difftastic is a syntax-aware diff tool which can be used with git.
|
Thanks! difftastic seems nice |
Difftastic is a syntax-aware diff tool which can be used with git.
|
Hello @notarock, Is there for convenience that you set the pager in that MR? I don’t see it mentioned in the documentation. home-manager/modules/programs/git.nix Line 483 in 5872aad https://difftastic.wilfred.me.uk/git.html I like to set my own Is it possible to keep that option free for the end user? |
|
Maybe we need to do |
No particular reasons really, it just made the output play nice enough for me when I first contributed the module. |
@notarock, would you agree to having it removed, or maybe using |
I don't have an opinion on this. Making it configurable with a default value seems like the way to go, but I don't have time to submit a pull request at this time. Feel free to open one if needed |
|
I decided to stick with the default git diff algorithm at the end instead of using difftastic. Making it configurable is the solution, but I will also let that duty of creating a PR to anyone requiring it in the future. Thanks anyway for helping with that. |
Difftastic is a syntax-aware diff tool which can be used with git.
Difftastic is a syntax-aware diff tool which can be used with git.
Description
Add the option to use difftastic, a syntax-aware diff tool, with git
Checklist
Change is backwards compatible.
Code formatted with
./format.Code tested through
nix-shell --pure tests -A run.all.Test cases updated/added. See example.
Commit messages are formatted like
See CONTRIBUTING for more information and recent commit messages for examples.
If this PR adds a new module
Added myself as module maintainer. See example.
Added myself and the module files to
.github/CODEOWNERS.