When comparing 2 files using
original file is provided as first argument, and the
new (modified) as second argument.
diff original new
Presumably, the logic behind this ordering was to show how to transform the original into the new one, using left-to-right convention for the flow of time.
I am having problems with this logic. When I am diffing two files, I intuitively use the inverse notation:
diff new original
so that I can, after reviewing the changes, cat the new file into the old one, and thus "patch" it to the new version.
cat new > original
But using "my" inverted notation is confusing, because diff shows
+ for deletion, and
- for addition.
How can I resolve this problem?