I'd like to be able to use diff & patch in order to write new lines to a file. To clarify what I mean a bit:
So I run the command
diff -u test1.repo test2.repo > repo.patch to find the differences, simple enough. Looking at the
repo.patch file I just made, I see the output:
If I use the patch as is though, it will write over with what is effectively just the data I have in
test2.repo. Is there a way to get patch to only write new lines (anything starting with a +)? I'd like to add lines to the original repository, but not destroy any customization they've already done to their file.