<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/diff.c, branch v1.6.4.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.6.4.3</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.6.4.3'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2009-07-09T07:59:58Z</updated>
<entry>
<title>Merge branch 'rs/grep-p'</title>
<updated>2009-07-09T07:59:58Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-07-09T07:59:58Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=128a9d86da3c156c7d1bf25692eeb68a522af935'/>
<id>urn:sha1:128a9d86da3c156c7d1bf25692eeb68a522af935</id>
<content type='text'>
* rs/grep-p:
  grep: simplify -p output
  grep -p: support user defined regular expressions
  grep: add option -p/--show-function
  grep: handle pre context lines on demand
  grep: print context hunk marks between files
  grep: move context hunk mark handling into show_line()
  userdiff: add xdiff_clear_find_func()
</content>
</entry>
<entry>
<title>Merge branch 'tr/die_errno'</title>
<updated>2009-07-06T16:39:46Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-07-06T16:39:46Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=dd787c19c4f011cc3adb422ef856f2c58d989640'/>
<id>urn:sha1:dd787c19c4f011cc3adb422ef856f2c58d989640</id>
<content type='text'>
* tr/die_errno:
  Use die_errno() instead of die() when checking syscalls
  Convert existing die(..., strerror(errno)) to die_errno()
  die_errno(): double % in strerror() output just in case
  Introduce die_errno() that appends strerror(errno) to die()
</content>
</entry>
<entry>
<title>userdiff: add xdiff_clear_find_func()</title>
<updated>2009-07-02T02:16:37Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2009-07-01T22:01:43Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=8cfe5f1cd5dabc3a21bc792327747deefeff6dff'/>
<id>urn:sha1:8cfe5f1cd5dabc3a21bc792327747deefeff6dff</id>
<content type='text'>
xdiff_set_find_func() is used to set user defined regular expressions
for finding function signatures.  Add xdiff_clear_find_func(), which
frees the memory allocated by the former, making the API complete.

Also, use the new function in diff.c (the only call site of
xdiff_set_find_func()) to clean up after ourselves.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Use die_errno() instead of die() when checking syscalls</title>
<updated>2009-06-27T18:14:53Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-06-27T15:58:47Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0721c314a5c8fddc877140ab5a333c42c62f780d'/>
<id>urn:sha1:0721c314a5c8fddc877140ab5a333c42c62f780d</id>
<content type='text'>
Lots of die() calls did not actually report the kind of error, which
can leave the user confused as to the real problem.  Use die_errno()
where we check a system/library call that sets errno on failure, or
one of the following that wrap such calls:

  Function              Passes on error from
  --------              --------------------
  odb_pack_keep         open
  read_ancestry         fopen
  read_in_full          xread
  strbuf_read           xread
  strbuf_read_file      open or strbuf_read_file
  strbuf_readlink       readlink
  write_in_full         xwrite

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Convert existing die(..., strerror(errno)) to die_errno()</title>
<updated>2009-06-27T18:14:53Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-06-27T15:58:46Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=d824cbba02a4061400a0e382f9bd241fbbff34f0'/>
<id>urn:sha1:d824cbba02a4061400a0e382f9bd241fbbff34f0</id>
<content type='text'>
Change calls to die(..., strerror(errno)) to use the new die_errno().

In the process, also make slight style adjustments: at least state
_something_ about the function that failed (instead of just printing
the pathname), and put paths in single quotes.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2009-06-09T07:29:36Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-06-09T07:29:36Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=f4f78e668dd40f2d4a5bc119cccb3c34c2675c38'/>
<id>urn:sha1:f4f78e668dd40f2d4a5bc119cccb3c34c2675c38</id>
<content type='text'>
* maint:
  diff.c: plug a memory leak in an error path
  fetch-pack: close output channel after sideband demultiplexer terminates
  builtin-remote: Make "remote show" display all urls
</content>
</entry>
<entry>
<title>diff.c: plug a memory leak in an error path</title>
<updated>2009-06-09T04:19:26Z</updated>
<author>
<name>Johannes Sixt</name>
<email>j6t@kdbg.org</email>
</author>
<published>2009-06-08T20:34:30Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=802f9c9cb21321d3ffe7576e01bbe31c51bd4c70'/>
<id>urn:sha1:802f9c9cb21321d3ffe7576e01bbe31c51bd4c70</id>
<content type='text'>
Signed-off-by: Johannes Sixt &lt;j6t@kdbg.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>diff: generate pretty filenames in prep_temp_blob()</title>
<updated>2009-06-01T00:57:59Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2009-05-31T08:35:52Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=003b33a8ad686ee4a0d0b36635bfd6aba940b24a'/>
<id>urn:sha1:003b33a8ad686ee4a0d0b36635bfd6aba940b24a</id>
<content type='text'>
Naturally, prep_temp_blob() did not care about filenames.
As a result, GIT_EXTERNAL_DIFF and textconv generated
filenames such as ".diff_XXXXXX".

This modifies prep_temp_blob() to generate user-friendly
filenames when creating temporary files.

Diffing "name.ext" now generates "XXXXXX_name.ext".

Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ar/unlink-err' into maint</title>
<updated>2009-05-26T02:01:50Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-05-26T02:01:50Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2c5942dbae01e5c23d2b68aced019702eb256ad9'/>
<id>urn:sha1:2c5942dbae01e5c23d2b68aced019702eb256ad9</id>
<content type='text'>
* ar/unlink-err:
  print unlink(2) errno in copy_or_link_directory
  replace direct calls to unlink(2) with unlink_or_warn
  Introduce an unlink(2) wrapper which gives warning if unlink failed
</content>
</entry>
<entry>
<title>convert bare readlink to strbuf_readlink</title>
<updated>2009-05-25T18:34:02Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-05-25T10:46:09Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3cd7388d57db4f4a29949e8de96493fb77059484'/>
<id>urn:sha1:3cd7388d57db4f4a29949e8de96493fb77059484</id>
<content type='text'>
This particular readlink call never NUL-terminated its
result, making it a potential source of bugs (though there
is no bug now, as it currently always respects the length
field). Let's just switch it to strbuf_readlink which is
shorter and less error-prone.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
