Skip to content

Can gumtree diffs be displayed in a terminal? #288

Answered by jrfaller
ideasman42 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi!

There is the textdiff command for serialized diffs, but it's not designed for end-users to read.

It would be great to have a console diff, but there are some caveats. Representing update and move in an inline diff is an open problem! Therefore I use a side to side diff to visualize the diff in GumTree. However in delta there are side-to-side diffs, so that could work. Another problem with move enabled diffs is that I am not sure it is compatible with synchronized scrolling. In GumTree I solved this by allowing to scroll independently the two files and allowing user to click on actions to scroll automatically the other files. This one is tough for a term based output.

I hope this help!

C…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ideasman42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants