File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # Usefull with:
2+ #
3+ # cat <<EOF > ~/.local/bin/podiff
4+ # #!/bin/sh
5+ # grep -v '^#:' "$1"
6+ # EOF
7+ # chmod a+x ~/.local/bin/podiff
8+ # git config diff.podiff.textconv podiff
9+
10+ * .po diff =podiff
11+ * .pot diff =podiff
Original file line number Diff line number Diff line change @@ -190,6 +190,26 @@ became the official french Python documentation translation thanks to
190190`PEP 545 <https://www.python.org/dev/peps/pep-0545/ >`_.
191191
192192
193+ Simplify git diffs
194+ ------------------
195+
196+ Git diffs are often crowded with useless line number changes, like:
197+
198+ -#: ../Doc/library/signal.rst:406
199+ +#: ../Doc/library/signal.rst:408
200+
201+ To tell git they are not usefull information, you can do the following
202+ after ensuring ``~/.local/bin/ `` is in your ``PATH ``.
203+
204+ cat <<EOF > ~/.local/bin/podiff
205+ #!/bin/sh
206+ grep -v '^#:' "$1"
207+ EOF
208+
209+ chmod a+x ~/.local/bin/podiff
210+
211+ git config diff.podiff.textconv podiff
212+
193213Maintenance
194214-----------
195215
You can’t perform that action at this time.
0 commit comments