Comments (2)
Yeah, this would be a reasonable addition. Note that there's no guarantee that a base version is present, but I agree the diff3
is easier to reason about.
I'm not sure what's the best way to display this though. Difftastic assumes a 2-way diff, so if I simply all of base against the left and all of base against the right, you end up scrolling a lot to compare each case.
from difftastic.
I've been using a script I hacked together to generate two diffs and present them both with xxdiff, which looks like the delta
example above.
What I decided on was to show just the first conflict section found in the file, and I will iterate on fixing each conflict, saving the file, and running this tool again to see the next conflict.
I would love to see difftastic have a command line option to make it behave similarly. I wouldn't want to see all the diffs all at once, I just want to see them one pair at a time as I'm working on resolving the conflicts. I would settle for two options to make it show either all the B -> X
diffs at once or all the B -> Y
diffs. But what is most important to me is being able to see the two diffs at the same time and visually check how to apply both changes correctly.
Sometimes a single logical code change gets broken up into multiple conflicts, and then going conflict-by-conflict doesn't work well. It would be mind blowing if there was a way to see a range of conflicts (by index number?) combined into a single pair of diffs.
from difftastic.
Related Issues (20)
- Provide automatic display options that consider terminal width, etc.
- Error: "index out of bounds: the len is 20 but the index is 20" HOT 4
- Unchanged HTML reported as changed HOT 1
- No option to diff hidden files in directories HOT 1
- Word differ returns out-of-bounds column numbers HOT 1
- tree-sitter-lua is out-dated
- index out of bounds: the len is X but the index is X', src/display/inline.rs:115:21
- Bad error recovery from (incorrect) C preprocessor error
- Inline diff is ignoring unchanged lines between hunks
- "index out of bounds" error, panic in side_by_side.rs HOT 2
- Crash inside eshell with memory allocation error HOT 5
- Output file paths as relative to current working directory
- Feature Request: Compare Subdirectories, ignore directory name difference
- Elm diff shows no syntactic changes for changes to doc comments
- `--language` command line argument is not supported
- Allow single-quoted strings to be the same as double-quoted strings HOT 5
- Include line number in patch diff header
- difftastic do not show color in fzf preview HOT 1
- Dynamic sublanguages (injections)
- [Question] Want to know the changes in the AST nodes of the old and new files? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from difftastic.