Is it possible to make the internal diff view for Sourcetree display word by word differences like the command line version of git: git diff --color-words? This would be VERY helpful for working with LaTex files.
It's not possible right now, sorry. Parsing colour control characters outside a real terminal can be tricky.
Thanks. I do hope that they can implement it in the future!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you're parsing the output of 'git diff' directly, wouldn't the addition of --word-diff=porcelain make parsing reliable?
I could have saved myself a lot of grief recently with word-level diff'ing. I'd love to still see the entire line be highlighted, but have the word-level changes be highlighted in a stronger color, like BBEdit does.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just wondering, any updates on this? Or still not feasible to implement any time soon?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is critical to have
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is now 3 years on. Can we re-visit this issue and see if its now possible to implement?
If git command line can do it, surely SourceTree should be able to?
Also, Gitlab Web UI interface seems to be able to identify which words in a line have changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is now 3 years on. Can we re-visit this issue and see if its now possible to implement?
If git command line can do it, surely SourceTree should be able to?
Also, Gitlab Web UI interface seems to be able to identify which words in a line have changed.
I have raised this as a feature request as this still does not seem to have been implemented 3 years on (2016).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SRCTREE-3598 has been marked a duplicate of:
https://jira.atlassian.com/browse/SRCTREE-888
^-- vote for this one
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Parsing color control characters may be difficult to do outside of the CLI, but can't you do it a different way? If gitk can do it, can't you just look at how they do it in their source, and then adapt it to your program?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The "Diff Colours" option (OS X version) looks like there are color schemes built for word-by-word diffs (light green, light red, dark green, dark red), but it's not implemented?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
it sucks, github and vscode are supported this features so long ago, what the PM 's plan ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes this would be very helpful for LaTeX/LyX files.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
gitk has this functionality. It can be passed in via command line or changed in the gui. It has both color diff and porcelain. I'd love to see this in SourceTree.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm writing a lot of front-end code and wrapping some elements in <div> and indenting makes all the lines red...
Can we have --color-words ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would also love this functionality, would be really helpful!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SmartGit/HG does that perfectly, but I hate the look of the rest of the app. This is really the only thing I'm missing from SourceTree!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.