Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.linux    |    Getting to be as bloated as Windows!    |    107,822 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 106,356 of 107,822    |
|    J.O. Aho to alex    |
|    Re: patch a file with the patch command    |
|    05 Aug 24 23:05:24    |
      From: user@example.net              On 05/08/2024 17.33, alex wrote:       > > patch -p1 < ../from_org_to_revised.patch       >       > The parameter -p1 what is it for?       >              it's to remove the first level of directory as in my example the paths       had been              --- orgcopy/orig 2024-08-02 14:22:59.937683379 +0200       +++ revisedcopy/orig 2024-08-02 10:17:25.108469758 +0200              so -p1 would make it same as:       --- orig 2024-08-02 14:22:59.937683379 +0200       +++ orig 2024-08-02 10:17:25.108469758 +0200              Say you had had:              --- src1/dir/orig 2024-08-02 14:22:59.937683379 +0200       +++ src2/dir/orig 2024-08-02 10:17:25.108469758 +0200              and you are in the src1/dir applying the patch, you would like to remove       two levels and use -p2, but if you had been in src1 then you would just       use -p1.              I hope that was understandable...              --        //Aho              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca