Commit 10acc5f
diff --color-moved-ws: demonstrate false positives
'diff --color-moved-ws=allow-indentation-change' can highlight lines
that have internal whitespace changes rather than indentation
changes. For example in commit 1a07e59 ("Update messages in
preparation for i18n", 2018-07-21) the lines
- die (_("must end with a color"));
+ die(_("must end with a color"));
are highlighted as moved when they should not be. Modify an existing
test to show the problem that will be fixed in the next commit.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent b73bcba commit 10acc5f
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1809 | 1809 | | |
1810 | 1810 | | |
1811 | 1811 | | |
1812 | | - | |
| 1812 | + | |
1813 | 1813 | | |
1814 | 1814 | | |
1815 | 1815 | | |
| |||
1827 | 1827 | | |
1828 | 1828 | | |
1829 | 1829 | | |
| 1830 | + | |
1830 | 1831 | | |
1831 | 1832 | | |
1832 | 1833 | | |
| |||
1847 | 1848 | | |
1848 | 1849 | | |
1849 | 1850 | | |
| 1851 | + | |
1850 | 1852 | | |
1851 | 1853 | | |
1852 | 1854 | | |
| |||
1856 | 1858 | | |
1857 | 1859 | | |
1858 | 1860 | | |
1859 | | - | |
| 1861 | + | |
1860 | 1862 | | |
1861 | 1863 | | |
1862 | 1864 | | |
| |||
1871 | 1873 | | |
1872 | 1874 | | |
1873 | 1875 | | |
| 1876 | + | |
1874 | 1877 | | |
1875 | 1878 | | |
1876 | 1879 | | |
| |||
1885 | 1888 | | |
1886 | 1889 | | |
1887 | 1890 | | |
| 1891 | + | |
1888 | 1892 | | |
1889 | 1893 | | |
1890 | 1894 | | |
| |||
0 commit comments