<div dir="ltr">Да, спасибо, обошёлся &quot;patch -R&quot;<br><br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-10-18 14:56 GMT+03:00 Stas <span dir="ltr">&lt;<a href="mailto:stas.grumbler@gmail.com" target="_blank">stas.grumbler@gmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 18.10.2016 14:23, Aleksey Birukov wrote:<br>
&gt; Существует ли программа преобразовывает patch файл в обратный?<br>
</span>IMHO она не имеет смысла, поскольку pathc умеет как применять, так и<br>
откатывать дифф. RTFM: man patch<br>
&gt;        -R  or  --reverse<br>
&gt;           Assume that this patch was created with the old and new<br>
&gt; files swapped.  (Yes, I&#39;m afraid that does happen occasionally, human<br>
&gt; nature being what  it  is.)   patch<br>
&gt;           attempts to swap each hunk around before applying it.<br>
&gt; Rejects come out in the swapped format.  The -R option does not work<br>
&gt; with ed diff scripts because there is<br>
&gt;           too little information to reconstruct the reverse operation.<br>
&gt;<br>
&gt;           If the first hunk of a patch fails, patch reverses the hunk<br>
&gt; to see if it can be applied that way.  If it can, you are asked if you<br>
&gt; want to  have  the  -R  option<br>
&gt;           set.  If it can&#39;t, the patch continues to be applied<br>
&gt; normally.  (Note: this method cannot detect a reversed patch if it is<br>
&gt; a normal diff and if the first command<br>
&gt;           is an append (i.e. it should have been a delete) since<br>
&gt; appends always succeed, due to the fact that a null context matches<br>
&gt; anywhere.  Luckily, most  patches  add<br>
&gt;           or change lines rather than delete them, so most reversed<br>
&gt; normal diffs begin with a delete, which fails, triggering the heuristic.)<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Станислав Дёгтев<br>
Служба &quot;Ваш админ&quot;<br>
 Мои контакты:<br>
 - jabber: <a href="mailto:grumbler@grumbler.org">grumbler@grumbler.org</a><br>
 - email: <a href="mailto:stas.grumbler@gmail.com">stas.grumbler@gmail.com</a> и <a href="mailto:stas@vashadmin.su">stas@vashadmin.su</a><br>
 - телефоны в Е-бурге <a href="tel:%2B79045430461" value="+79045430461">+79045430461</a> и <a href="tel:%2B79222112259" value="+79222112259">+79222112259</a><br>
</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
Sisyphus mailing list<br>
<a href="mailto:Sisyphus@lists.altlinux.org">Sisyphus@lists.altlinux.org</a><br>
<a href="https://lists.altlinux.org/mailman/listinfo/sisyphus" rel="noreferrer" target="_blank">https://lists.altlinux.org/<wbr>mailman/listinfo/sisyphus</a></div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ответьте, пожалуйста, что-нибудь если получили это письмо.<br><br>--<br>С уважением,<br>Бирюков Алексей<br></div>
</div>