This website requires JavaScript.
Explore
Help
Sign in
system
/
qemu
Watch
1
Star
0
Fork
You've already forked qemu
0
mirror of
https://gitlab.com/qemu-project/qemu
synced
2024-11-05 20:35:44 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
2c2e0f2842
qemu
/
.gitattributes
4 lines
74 B
Text
Raw
Normal View
History
Unescape
Escape
buildsys: Help git-diff adding .gitattributes config file Since commits 0979ed017f0 ("meson: rename .inc.h files to .h.inc") and 139c1837db7 ("meson: rename included C source files to .c.inc") 'git-diff --function-context' stopped displaying C function context correctly. We can help git-diff by providing attributes to the .[ch].inc path names. See: https://git-scm.com/docs/gitattributes#_generating_diff_text Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20201014082209.3712625-1-philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-10-14 08:22:09 +00:00
*.c.inc diff=c
*.h.inc diff=c
maint: Tell git that *.py files should use python diff hunks 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 | +++ b/python/qemu/machine.py | -@@ -337,12 +337,12 @@ class QEMUMachine: | +@@ -337,12 +337,12 @@ def _post_shutdown(self) -> None: | self._qmp.close() which makes it much easier to tell what function a patch is touching, rather than a non-descript listing of what class contains the changes. Sadly, our python files that don't use .py suffix (such as numerous iotests) do not benefit from this glob. Reported-by: John Snow <jsnow@redhat.com> Signed-off-by: Eric Blake <eblake@redhat.com> Message-Id: <20210215222524.1820223-1-eblake@redhat.com> Reviewed-by: John Snow <jsnow@redhat.com> Reviewed-by: Cleber Rosa <crosa@redhat.com> Signed-off-by: Cleber Rosa <crosa@redhat.com>
2021-02-15 22:25:24 +00:00
*.py diff=python
Reference in a new issue
Copy permalink