-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add example usage with git difftool. #157
Conversation
Shamelessly stolen from: https://github.com/wilfred/difftastic#dogfooding
Here's an example with https://github.com/hrkfdn/ncspot/ adding a non-semantic diff:
And another one with a rename:
|
Nice, tried it out and it seems to work fine. Probably easier/cleaner than my little script here: https://github.com/afnanenayet/diffsitter/blob/main/assets/git-diffsitter |
Fixes #155 |
When I run |
I'm thinking that your script may be useful with a .gitattributes file with supported file types listed like this. That way it only operates on file types that are supported, plus it then works with plain riff. The disadvantage is that you can't get an apply-able diff always... |
Ultimately, it would be nice if diffsitter would handle unknown files and show a non-semantic diff. But this is beyond the scope of this. I have opened #160 With an intermediary script I guess it could achieve naively this way: |
According to the readme in repo, it doesn't support markdown. diffsitter supports the following languages: Bash There are some comments below mentioning the need to handle unsupported file type more graceful. |
We gracefully handle unsupported filetypes now that #212 has been merged |
Does this supersede #208 ? |
No, I think I wanted to make the git experience more ergonomic so I never ended up merging that PR. |
Shamelessly stolen from: https://github.com/wilfred/difftastic#dogfooding