Hacker News new | ask | show | jobs
by vthriller 2688 days ago
> Technically if you need a patch you can generate it on the fly by comparing both objects

Automatically generated patches might not work in the long run in certain situations (e.g. when standard 3-line context is repetitive, making the patch applicable at multiple places in the same file). Those patches also suck at conveying actual file changes (how many actual changes start with "- }" or contain lots of context braces?); that eventually prompted me to do lots of split commits in git whose sole purpose is to make automatic diffs more readable (e.g. separate commit for indentation fix).

That brings the question: can Pijul store user-formatted patches?