main
openwrt-23.05
openwrt-24.10
master
openwrt-22.03
openwrt-21.02
openwrt-19.07
openwrt-18.06
lede-17.01
v24.10.0-rc7
v24.10.0-rc6
v24.10.0-rc5
v24.10.0-rc4
v24.10.0-rc3
v24.10.0-rc2
v24.10.0-rc1
v23.05.5
v22.03.7
v23.05.4
v23.05.3
v22.03.6
v23.05.2
v23.05.1
v23.05.0
v23.05.0-rc4
v23.05.0-rc3
v23.05.0-rc2
v23.05.0-rc1
v21.02.7
v22.03.5
v21.02.6
v22.03.4
v22.03.3
v21.02.5
v22.03.2
v22.03.1
v21.02.4
v22.03.0
v22.03.0-rc6
v22.03.0-rc5
v22.03.0-rc4
v22.03.0-rc3
v22.03.0-rc2
v22.03.0-rc1
v21.02.3
v19.07.10
v19.07.9
v21.02.2
v21.02.1
v21.02.0
v21.02.0-rc4
v19.07.8
v21.02.0-rc3
v21.02.0-rc2
v21.02.0-rc1
v19.07.7
v19.07.6
v19.07.5
v18.06.9
v19.07.4
v19.07.3
v19.07.2
v18.06.8
v18.06.7
v19.07.1
v19.07.0
v18.06.6
v19.07.0-rc2
v18.06.5
v19.07.0-rc1
v18.06.4
v18.06.3
v17.01.7
v18.06.2
v17.01.6
v18.06.1
v18.06.0
v17.01.5
v18.06.0-rc2
v18.06.0-rc1
v17.01.4
v17.01.3
v17.01.2
v17.01.1
v17.01.0
v17.01.0-rc2
v17.01.0-rc1
reboot
${ noResults }
2 Commits (main)
Author | SHA1 | Message | Date |
---|---|---|---|
|
ebf1866d09 |
.gitattributes: ignore some whitespace "violations" in .patch files
git's default core.whitespace[1] setting doesn't agree with .patch files. This causes whitespace warnings when running `git apply`, (including via `git am`) and causes red highlighting when viewing diffs to .patch files via `git diff` (including via `git show`) when outputting to a terminal. These types of whitespace “violations” will now be explicitly disabled for .patch files in the repository-wide .gitattributes file to prevent git from suggesting that there’s anything wrong with checked-in .patch files. A .patch file will naturally have `space-before-tab` if a context line (not a +/- line) begins with a tab character (as is common in patches to files that use the tab indent convention), and will also naturally have `trailing-space` if a context line is blank (also common). Neither `indent-with-non-tab` nor `tab-in-indent` are enabled in core.whitespace by default, but could also occur naturally in .patch files, and are also explicitly disabled here for completeness to cover cases where they may be enabled in core.whitespace at the global or system level. These false violations may be flagged frequently in OpenWrt, because the repository contains many .patch files. There are currently just over 5,000 .patch files, representing slightly more than half of all files. [1] https://git-scm.com/book/en/v2/Customizing-Git-Git-Configuration#_core_whitespace Link: https://github.com/openwrt/openwrt/pull/16012 Signed-off-by: Mark Mentovai <mark@mentovai.com> Link: https://github.com/openwrt/openwrt/pull/16015 Signed-off-by: John Crispin <john@phrozen.org> |
4 months ago |
|
7fb394b9ab |
add .gitattributes to prevent the git autocrlf option from messing with CRLF/LF in files
SVN-Revision: 31649 |
13 years ago |