Show More
@@ -0,0 +1,8 b'' | |||||
|
1 | # When making commits that are strictly formatting/style changes, add the | |||
|
2 | # commit hash here, so git blame can ignore the change. | |||
|
3 | # See docs for more details: | |||
|
4 | # https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile | |||
|
5 | ||||
|
6 | # Example entries: | |||
|
7 | # <full commit hash> # initial black-format | |||
|
8 | # <full commit hash> # rename something internal |
@@ -0,0 +1,10 b'' | |||||
|
1 | rem Other config options for blame are markUnblamables and markIgnoredLines. | |||
|
2 | rem See docs for more details: | |||
|
3 | rem https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile | |||
|
4 | ||||
|
5 | rem Uncomment below and rerun script to enable an option. | |||
|
6 | rem git config blame.markIgnoredLines | |||
|
7 | rem git config blame.markUnblamables | |||
|
8 | ||||
|
9 | git config blame.ignoreRevsFile .git-blame-ignore-revs | |||
|
10 | git config --get blame.ignoreRevsFile |
@@ -0,0 +1,10 b'' | |||||
|
1 | # Other config options for blame are markUnblamables and markIgnoredLines. | |||
|
2 | # See docs for more details: | |||
|
3 | # https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile | |||
|
4 | ||||
|
5 | # Uncomment below and rerun script to enable an option. | |||
|
6 | # git config blame.markIgnoredLines | |||
|
7 | # git config blame.markUnblamables | |||
|
8 | ||||
|
9 | git config blame.ignoreRevsFile .git-blame-ignore-revs | |||
|
10 | git config --get blame.ignoreRevsFile |
@@ -24,6 +24,8 b' graft docs' | |||||
24 | exclude docs/\#* |
|
24 | exclude docs/\#* | |
25 | exclude docs/man/*.1.gz |
|
25 | exclude docs/man/*.1.gz | |
26 |
|
26 | |||
|
27 | exclude .git-blame-ignore-revs | |||
|
28 | ||||
27 | # Examples |
|
29 | # Examples | |
28 | graft examples |
|
30 | graft examples | |
29 |
|
31 |
@@ -129,3 +129,18 b' project that you might want to use:' | |||||
129 | - `mypython <https://www.asmeurer.com/mypython/>`_ |
|
129 | - `mypython <https://www.asmeurer.com/mypython/>`_ | |
130 | - `ptpython and ptipython <https://pypi.org/project/ptpython/>` |
|
130 | - `ptpython and ptipython <https://pypi.org/project/ptpython/>` | |
131 | - `xonsh <https://xon.sh/>` |
|
131 | - `xonsh <https://xon.sh/>` | |
|
132 | ||||
|
133 | Ignoring commits with git blame.ignoreRevsFile | |||
|
134 | ============================================== | |||
|
135 | ||||
|
136 | As of git 2.23, it is possible to make formatting changes without breaking | |||
|
137 | ``git blame``. See the `git documentation | |||
|
138 | <https://git-scm.com/docs/git-config#Documentation/git-config.txt-blameignoreRevsFile>`_ | |||
|
139 | for more details. | |||
|
140 | ||||
|
141 | To use this feature you must: | |||
|
142 | ||||
|
143 | - Install git >= 2.23 | |||
|
144 | - Configure your local git repo by running: | |||
|
145 | - POSIX: ``tools\configure-git-blame-ignore-revs.sh`` | |||
|
146 | - Windows: ``tools\configure-git-blame-ignore-revs.bat`` |
General Comments 0
You need to be logged in to leave comments.
Login now