What's the difference between patch -p0 and patch -p1?
Is there any difference at all?
|
|
|
The most common way to create a patch is to run the
Then you get a patch that contains changes for one file and doesn't contain a file name at all. When you apply that patch, you need to specify which file you want to apply it to:
Often, you're comparing two versions of a whole multi-file project contained in a directory. A typical invocation of
Then the patch contains file names, given in header lines like Sometimes, the header lines in the patch contain the file name directly with no lead-up. This is common with version control systems; for example In the special case when there are no subdirectories in the trees that you're comparing, no |
|||
|
|
|
From the man:
|
|||
|
|