<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/.gitattributes, branch master</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/.gitattributes?h=master</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/.gitattributes?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-03-28T22:15:14+00:00</updated>
<entry>
<title>gitattributes: Cover Objective-C source files</title>
<updated>2022-03-28T22:15:14+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2022-03-17T12:57:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=bc4ca8efba3ee38e6b3773fb0ed783380bf9c1bd'/>
<id>urn:sha1:bc4ca8efba3ee38e6b3773fb0ed783380bf9c1bd</id>
<content type='text'>
Apple's Git distribution actually carries a similar file which
annotates *.m:
https://github.com/apple-opensource/Git/blob/73/gitattributes

See comments in commit 29cf16db23 ("buildsys: Help git-diff
adding .gitattributes config file") for details.

Signed-off-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Reviewed-by: Christian Schoenebeck &lt;qemu_oss@crudebyte.com&gt;
Message-Id: &lt;20220317130326.39188-1-philippe.mathieu.daude@gmail.com&gt;
</content>
</entry>
<entry>
<title>maint: Tell git that *.py files should use python diff hunks</title>
<updated>2021-02-16T03:13:34+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2021-02-15T22:25:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=991e80911ed131f1785bd6015647180fed4dd95f'/>
<id>urn:sha1:991e80911ed131f1785bd6015647180fed4dd95f</id>
<content type='text'>
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) -&gt; 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 &lt;jsnow@redhat.com&gt;
Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20210215222524.1820223-1-eblake@redhat.com&gt;
Reviewed-by: John Snow &lt;jsnow@redhat.com&gt;
Reviewed-by: Cleber Rosa &lt;crosa@redhat.com&gt;
Signed-off-by: Cleber Rosa &lt;crosa@redhat.com&gt;
</content>
</entry>
<entry>
<title>buildsys: Help git-diff adding .gitattributes config file</title>
<updated>2020-11-18T08:33:16+00:00</updated>
<author>
<name>Philippe Mathieu-Daudé</name>
</author>
<published>2020-10-14T08:22:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=29cf16db23e605769f6d89c47a1d45ef3373b88e'/>
<id>urn:sha1:29cf16db23e605769f6d89c47a1d45ef3373b88e</id>
<content type='text'>
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é &lt;philmd@redhat.com&gt;
Reviewed-by: Marc-André Lureau &lt;marcandre.lureau@redhat.com&gt;
Message-Id: &lt;20201014082209.3712625-1-philmd@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
</content>
</entry>
</feed>
