▲ | xg15 5 days ago | ||||||||||||||||
> Binary files can't be meaningfully merged. I think we really need more development of format-specific diff and merge tools. A lot of binary formats could absolutely be diffed or merged, but you'd need algorithms and maybe UIs specific to that format - there is no "generic" algorithm like for text-based files. (And even there, generic line-wise diffing if often more "good enough" than really good) I think it would be awesome if we could get "diff/merge servers" analogous to the "language servers" for IDEs some day. | |||||||||||||||||
▲ | ramses0 5 days ago | parent | next [-] | ||||||||||||||||
Git actually supports this, believe it or not, although it's a bit wonky (of course): https://github.com/ewanmellor/git-diff-image/blob/master/REA... | |||||||||||||||||
▲ | flohofwoe 5 days ago | parent | prev | next [-] | ||||||||||||||||
Sounds like an infinite rabbit hole :) The alternative of preventing complex merge situations in the first place through file locking is low-tech, easy to implement, and automatically works on all current and future file formats. | |||||||||||||||||
| |||||||||||||||||
▲ | bloak 5 days ago | parent | prev [-] | ||||||||||||||||
An alternative approach (less powerful but simpler) might be to reversibly convert the binary files into a mergeable text-like form before committing them. I've never done exactly that but I have occasionally decided how information will be represented in a data file with merging in mind. |