I am aware about git cherry-pick and git apply terminalogies. But today i came across with some issue. I was applying one patch by using the diff of two revisions. I used the below command:
git diff HEAD > diff.patch
git apply diff.patch
I got patch apply failed for one file.
Then i simply tried to cherry-pick the commit-id2. It is cherry-picked successfully.
What may be the reason? Anyone wants to throw some light on the same.