<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diffcore-order.c, branch v1.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-12-27T01:23:59Z</updated>
<entry>
<title>avoid asking ?alloc() for zero bytes.</title>
<updated>2005-12-27T01:23:59Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-12-26T20:34:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7e4a2a848377241b8fb4f624d1151bbf2f8d5814'/>
<id>urn:sha1:7e4a2a848377241b8fb4f624d1151bbf2f8d5814</id>
<content type='text'>
Avoid asking for zero bytes when that change simplifies overall
logic.  Later we would change the wrapper to ask for 1 byte on
platforms that return NULL for zero byte request.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] mmap error handling</title>
<updated>2005-07-30T00:21:48Z</updated>
<author>
<name>Pavel Roskin</name>
<email>proski@gnu.org</email>
</author>
<published>2005-07-29T14:49:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e35f9824159bba94eecdf22d198799701ed60940'/>
<id>urn:sha1:e35f9824159bba94eecdf22d198799701ed60940</id>
<content type='text'>
I have reviewed all occurrences of mmap() in git and fixed three types
of errors/defects:

1) The result is not checked.
2) The file descriptor is closed if mmap() succeeds, but not when it
fails.
3) Various casts applied to -1 are used instead of MAP_FAILED, which is
specifically defined to check mmap() return value.

[jc: This is a second round of Pavel's patch.  He fixed up the problem
that close() potentially clobbering the errno from mmap, which
the first round had.]

Signed-off-by: Pavel Roskin &lt;proski@gnu.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add -O&lt;orderfile&gt; option to diff-* brothers.</title>
<updated>2005-05-31T01:10:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-30T07:09:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=af5323e0274fad058f13949b89a9191a7bef7e38'/>
<id>urn:sha1:af5323e0274fad058f13949b89a9191a7bef7e38</id>
<content type='text'>
A new diffcore filter diffcore-order is introduced.  This takes
a text file each of whose line is a shell glob pattern.  Patches
that match a glob pattern on an earlier line in the file are
output before patches that match a later line, and patches that
do not match any glob pattern are output last.

A typical orderfile for git project probably should look like
this:

    README
    Makefile
    Documentation
    *.h
    *.c

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
