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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Creating a patch file

  • 29-12-2012 2:55pm
    #1
    Registered Users, Registered Users 2 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