From 91927abc0b630e9a499c4dbf34e9b1009eadaff5 Mon Sep 17 00:00:00 2001 From: Paul Bartell Date: Tue, 9 Aug 2022 11:50:26 -0700 Subject: [PATCH] Introduce .git-blame-ignore-revs The .git-blame-ignore-revs allows easy filtering out large commits from calls to git blame. This can be configured frome the git command line via the following: git config blame.ignoreRevsFile .git-blame-ignore-revs --- .git-blame-ignore-revs | 11 +++++++++++ README.md | 16 +++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 .git-blame-ignore-revs diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 000000000..00b3458d3 --- /dev/null +++ b/.git-blame-ignore-revs @@ -0,0 +1,11 @@ +# Normalize line endings and whitespace +ddd1e30018e74ad293cda0635018d636a6657f57 + +# Convert tabs to spaces (4) +8c77117c32e49a5070cd85e8920c36723997e465 + +# Apply uncrustify rules +587a83d647619bb0a508661c7bb4d6df89851582 +2c530ba5c352fdf420d1b13709a3970f04e9e6c6 +718178c68a1c863dd1a2eac7aea326a789d3bc52 +a5dbc2b1de17e5468420d5a928d7392d799780e2 diff --git a/README.md b/README.md index ca0a7ddbc..567487242 100644 --- a/README.md +++ b/README.md @@ -76,7 +76,21 @@ See the readme file in the ```./portable``` directory for more information. - The ```./include``` directory contains the real time kernel header files. ### Code Formatting -FreeRTOS files are formatted using the "uncrustify" tool. The configuration file used by uncrustify can be found in the [FreeRTOS/FreeRTOS repository](https://github.com/FreeRTOS/FreeRTOS/blob/main/tools/uncrustify.cfg). +FreeRTOS files are formatted using the "uncrustify" tool. The configuration file used by uncrustify can be found in the [.github/uncrustify.cfg](.github/uncrustify.cfg) file. + +### Line Endings +File checked into the FreeRTOS-Kernel repository use unix-style LF line endings for the best compatbility with git. + +For optmial compatibility with Microsoft Windows tools, it is best to enable the git autocrlf feature. You can eanble this setting for the current repository using the following command: +``` +git config core.autocrlf true +``` + +### Git History Optimizations +Some commits in this repository perform large refactors which touch many lines and lead to unwanted behavior when using the `git blame` command. You can configure git to ignore the list of large refactor commits in this repository with the followig command: +``` +git config blame.ignoreRevsFile .git-blame-ignore-revs +``` ### Spelling *lexicon.txt* contains words that are not traditionally found in an English dictionary. It is used by the spellchecker to verify the various jargon, variable names, and other odd words used in the FreeRTOS code base. If your pull request fails to pass the spelling and you believe this is a mistake, then add the word to *lexicon.txt*.