Re: [PATCH] maint: Tell git that *.py files should use python diff hunks

2021-02-15 Thread Cleber Rosa
On Mon, Feb 15, 2021 at 04:25:24PM -0600, Eric Blake wrote: > Git's default hunk pattern recognizer favors the C language, but it > also includes several built-in diff styles that give saner results in > other languages. In particular, telling git to treat all .py files as > python changes the beg

Re: [PATCH] maint: Tell git that *.py files should use python diff hunks

2021-02-15 Thread John Snow
On 2/15/21 5:25 PM, Eric Blake wrote: Git's default hunk pattern recognizer favors the C language, but it also includes several built-in diff styles that give saner results in other languages. In particular, telling git to treat all .py files as python changes the beginning of diff hunks as foll

[PATCH] maint: Tell git that *.py files should use python diff hunks

2021-02-15 Thread Eric Blake
Git's default hunk pattern recognizer favors the C language, but it also includes several built-in diff styles that give saner results in other languages. In particular, telling git to treat all .py files as python changes the beginning of diff hunks as follows: | --- a/python/qemu/machine.py |