Ok, ho provato tutte le risposte che ho trovato sullo stackoverflow, ma apparentemente nessuno sembra essere in grado di risolvere il mio problema. Voglio applicare una patch creata da SVN a un repository git. Apparentemente il modo più semplice per farlo è usare 'git apply', ma non sembra funzionare.applica la patch svn al repository git
$ git apply --ignore-space-change --ignore-whitespace < xxx_parser.patch
<stdin>:10: trailing whitespace.
FORCE_LA_CHECK = false; stdin:23: trailing whitespace.
<stdin>:79: trailing whitespace
.
.
.
.
error: pmd/grammar/JspParser.jjt: No such file or directory
error: patch failed: pmd/pom.xml:251
error: pmd/pom.xml: patch does not apply
Questo è il contenuto di xxx_parser.patch:
$ head xxx_parser.patch Index: etc/grammar/JspParser.jjt
--- etc/grammar/JspParser.jjt (revision 7704)
+++ etc/grammar/JspParser.jjt (working copy)
ora Perché si lamentano del fatto che non è possibile trovare il file PMD/grammaticale/JspParser.jjt?
Il percorso nella patch punta alla directory corretta.
Sapete che un file patch può avere modifiche per più di un file, giusto? Basta guardare la testata del file come hai qui solo ti mostrerà il primo file nella patch. – asm