a_kodama
Feb 4, 2021

Thank you! You showed an example using -p0 option,

`patch -p0 -i edit_content.diff`

Can you show an option using -p1 option for when you receive a patch created without `--no-prefix`?

Also, if you use `git apply` and add --stat to the end of `git apply mypatch.diff --stat` you can see if the patch will affect any files or not.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

a_kodama
a_kodama

Written by a_kodama

design, education, basic income, person, drafts of something rather than nothing, practice, attempting to put thoughts into words for myself

No responses yet

Write a response