Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Creating a patch file

Options
  • 29-12-2012 3:55pm
    #1
    Registered Users Posts: 7,838 ✭✭✭


    I'm trying to patch a directory. I want to patch only files that exist in both source trees. By that I mean:
    diff a/dir/... b/dir/...
    

    I don't want any files that exist in a/dir/... to be deleted because they aren't in b/dir/...

    Also

    I don't want any files that aren't already in a/dir/... to be patched in from b/dir/...

    I have tried
    diff -ur --unidirectional-new-files
    

    This will create b files in a but not delete a files that aren't in b.

    I think it should be done with diff but maybe it's a patch option?


Advertisement