|
870 | 870 | <listitem> |
871 | 871 | <para>How to handle <literal>a/</literal> and <literal>b/</literal> |
872 | 872 | prefixes in Git diff filenames. With <literal>strip</literal>, removes |
873 | | - the prefixes for consistent output. With <literal>keep</literal> (default), |
| 873 | + the prefixes both for filename matching (when using <option>-i</option> |
| 874 | + and <option>-x</option> options) and for filename output (similar to |
| 875 | + <option>--strip</option>). With <literal>keep</literal> (default), |
874 | 876 | preserves existing behavior. Applies to both Git-specific diffs (binary files, |
875 | 877 | renames, mode changes) and traditional diffs when part of a Git patch. |
876 | 878 | Note: Git rename operations use <literal>rename from/to</literal> headers |
@@ -1383,6 +1385,23 @@ patch.file]]></screen></para> |
1383 | 1385 | </listitem> |
1384 | 1386 | </varlistentry> |
1385 | 1387 |
|
| 1388 | + <varlistentry> |
| 1389 | + <term><option>--git-prefixes</option>=<replaceable>strip|keep</replaceable></term> |
| 1390 | + <listitem> |
| 1391 | + <para>How to handle <literal>a/</literal> and <literal>b/</literal> |
| 1392 | + prefixes in Git diff filenames. With <literal>strip</literal>, removes |
| 1393 | + the prefixes both for filename matching (when using <option>-i</option> |
| 1394 | + and <option>-x</option> options) and for filename output (similar to |
| 1395 | + <option>--strip</option>). With <literal>keep</literal> (default), |
| 1396 | + preserves existing behavior. Applies to both Git-specific diffs (binary files, |
| 1397 | + renames, mode changes) and traditional diffs when part of a Git patch. |
| 1398 | + Note: Git rename operations use <literal>rename from/to</literal> headers |
| 1399 | + that contain literal filenames without <literal>a/</literal> or |
| 1400 | + <literal>b/</literal> prefixes, so this option does not affect renamed |
| 1401 | + filenames. The default will change to <literal>strip</literal> in version 0.5.0.</para> |
| 1402 | + </listitem> |
| 1403 | + </varlistentry> |
| 1404 | + |
1386 | 1405 | <varlistentry> |
1387 | 1406 | <term><option>--addprefix</option>=<replaceable>PREFIX</replaceable></term> |
1388 | 1407 | <listitem> |
@@ -1563,6 +1582,7 @@ done)]]></screen></para> |
1563 | 1582 | <arg>--strip-match=<replaceable>n</replaceable></arg> |
1564 | 1583 | </group> |
1565 | 1584 | <arg choice="opt">--strip=<replaceable>n</replaceable></arg> |
| 1585 | + <arg choice="opt">--git-prefixes=<replaceable>strip|keep</replaceable></arg> |
1566 | 1586 | <arg choice="opt">--addprefix=<replaceable>PREFIX</replaceable></arg> |
1567 | 1587 | <group choice="opt"> |
1568 | 1588 | <arg>-s</arg> |
@@ -1772,6 +1792,23 @@ will pipe patch of file #2 to vim - -R |
1772 | 1792 | </listitem> |
1773 | 1793 | </varlistentry> |
1774 | 1794 |
|
| 1795 | + <varlistentry> |
| 1796 | + <term><option>--git-prefixes</option>=<replaceable>strip|keep</replaceable></term> |
| 1797 | + <listitem> |
| 1798 | + <para>How to handle <literal>a/</literal> and <literal>b/</literal> |
| 1799 | + prefixes in Git diff filenames. With <literal>strip</literal>, removes |
| 1800 | + the prefixes both for filename matching (when using <option>-i</option> |
| 1801 | + and <option>-x</option> options) and for filename output (similar to |
| 1802 | + <option>--strip</option>). With <literal>keep</literal> (default), |
| 1803 | + preserves existing behavior. Applies to both Git-specific diffs (binary files, |
| 1804 | + renames, mode changes) and traditional diffs when part of a Git patch. |
| 1805 | + Note: Git rename operations use <literal>rename from/to</literal> headers |
| 1806 | + that contain literal filenames without <literal>a/</literal> or |
| 1807 | + <literal>b/</literal> prefixes, so this option does not affect renamed |
| 1808 | + filenames. The default will change to <literal>strip</literal> in version 0.5.0.</para> |
| 1809 | + </listitem> |
| 1810 | + </varlistentry> |
| 1811 | + |
1775 | 1812 | <varlistentry> |
1776 | 1813 | <term><option>--addprefix</option>=<replaceable>PREFIX</replaceable></term> |
1777 | 1814 | <listitem> |
@@ -2222,6 +2259,7 @@ will pipe patch of file #2 to vim - -R |
2222 | 2259 | <arg>--strip-match=<replaceable>n</replaceable></arg> |
2223 | 2260 | </group> |
2224 | 2261 | <arg choice="opt">--strip=<replaceable>n</replaceable></arg> |
| 2262 | + <arg choice="opt">--git-prefixes=<replaceable>strip|keep</replaceable></arg> |
2225 | 2263 | <arg choice="opt">--addprefix=<replaceable>PREFIX</replaceable></arg> |
2226 | 2264 | <arg choice="opt">--addoldprefix=<replaceable>PREFIX</replaceable></arg> |
2227 | 2265 | <arg choice="opt">--addnewprefix=<replaceable>PREFIX</replaceable></arg> |
@@ -2373,6 +2411,23 @@ will pipe patch of file #2 to vim - -R |
2373 | 2411 | </listitem> |
2374 | 2412 | </varlistentry> |
2375 | 2413 |
|
| 2414 | + <varlistentry> |
| 2415 | + <term><option>--git-prefixes</option>=<replaceable>strip|keep</replaceable></term> |
| 2416 | + <listitem> |
| 2417 | + <para>How to handle <literal>a/</literal> and <literal>b/</literal> |
| 2418 | + prefixes in Git diff filenames. With <literal>strip</literal>, removes |
| 2419 | + the prefixes both for filename matching (when using <option>-i</option> |
| 2420 | + and <option>-x</option> options) and for filename output (similar to |
| 2421 | + <option>--strip</option>). With <literal>keep</literal> (default), |
| 2422 | + preserves existing behavior. Applies to both Git-specific diffs (binary files, |
| 2423 | + renames, mode changes) and traditional diffs when part of a Git patch. |
| 2424 | + Note: Git rename operations use <literal>rename from/to</literal> headers |
| 2425 | + that contain literal filenames without <literal>a/</literal> or |
| 2426 | + <literal>b/</literal> prefixes, so this option does not affect renamed |
| 2427 | + filenames. The default will change to <literal>strip</literal> in version 0.5.0.</para> |
| 2428 | + </listitem> |
| 2429 | + </varlistentry> |
| 2430 | + |
2376 | 2431 | <varlistentry> |
2377 | 2432 | <term><option>--addprefix</option>=<replaceable>PREFIX</replaceable></term> |
2378 | 2433 | <listitem> |
|
0 commit comments