<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/git.git/git-compat-util.h, branch v1.7.7.4</title>
<subtitle>Git
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.7.7.4</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/atom?h=v1.7.7.4'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/'/>
<updated>2011-08-18T00:25:55Z</updated>
<entry>
<title>Merge branch 'cb/maint-exec-error-report'</title>
<updated>2011-08-18T00:25:55Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-08-18T00:25:55Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=253348b2dbb6519c82e6bc3543c652b9727771ed'/>
<id>urn:sha1:253348b2dbb6519c82e6bc3543c652b9727771ed</id>
<content type='text'>
* cb/maint-exec-error-report:
  notice error exit from pager
  error_routine: use parent's stderr if exec fails
</content>
</entry>
<entry>
<title>error_routine: use parent's stderr if exec fails</title>
<updated>2011-08-01T01:27:07Z</updated>
<author>
<name>Clemens Buchacher</name>
<email>drizzd@aon.at</email>
</author>
<published>2011-07-27T21:32:34Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=3bc4181fde899e02aff89f7c0a47f18d37311cb3'/>
<id>urn:sha1:3bc4181fde899e02aff89f7c0a47f18d37311cb3</id>
<content type='text'>
The new process's error output may be redirected elsewhere, but if
the exec fails, output should still go to the parent's stderr. This
has already been done for the die_routine. Do the same for
error_routine.

Signed-off-by: Clemens Buchacher &lt;drizzd@aon.at&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'ak/gcc46-profile-feedback'</title>
<updated>2011-07-19T16:32:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-07-19T16:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=d37b2991b1edea76c01ec05cc383005b55c96e36'/>
<id>urn:sha1:d37b2991b1edea76c01ec05cc383005b55c96e36</id>
<content type='text'>
* ak/gcc46-profile-feedback:
  Add explanation of the profile feedback build to the README
  Add profile feedback build to git
  Add option to disable NORETURN
</content>
</entry>
<entry>
<title>Merge branch 'ef/maint-win-verify-path'</title>
<updated>2011-06-30T00:09:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-06-30T00:09:17Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=033c2dc4364042b9e6dbd44e82e1974f78a72567'/>
<id>urn:sha1:033c2dc4364042b9e6dbd44e82e1974f78a72567</id>
<content type='text'>
* ef/maint-win-verify-path:
  verify_dotfile(): do not assume '/' is the path seperator
  verify_path(): simplify check at the directory boundary
  verify_path: consider dos drive prefix
  real_path: do not assume '/' is the path seperator
  A Windows path starting with a backslash is absolute
</content>
</entry>
<entry>
<title>Add option to disable NORETURN</title>
<updated>2011-06-20T19:32:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-06-19T01:07:03Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=6520c84685660fc995a405d7b7511a903fc12e18'/>
<id>urn:sha1:6520c84685660fc995a405d7b7511a903fc12e18</id>
<content type='text'>
Due to a bug in gcc 4.6+ it can crash when doing profile feedback
with a noreturn function pointer

(http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49299)

This adds a Makefile variable to disable noreturns.

[Patch by Junio, description by Andi Kleen]

Signed-off-by: Andi Kleen &lt;ak@linux.intel.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>real_path: do not assume '/' is the path seperator</title>
<updated>2011-05-27T17:59:16Z</updated>
<author>
<name>Theo Niessink</name>
<email>theo@taletn.com</email>
</author>
<published>2011-05-27T16:00:39Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=d1c69255a1014ccaeb9841f2114e20f048556391'/>
<id>urn:sha1:d1c69255a1014ccaeb9841f2114e20f048556391</id>
<content type='text'>
real_path currently assumes it's input had '/' as path seperator.
This assumption does not hold true for the code-path from
prefix_path (on Windows), where real_path can be called before
normalize_path_copy.

Fix real_path so it doesn't make this assumption. Create a helper
function to reverse-search for the last path-seperator in a string.

Signed-off-by: Theo Niessink &lt;theo@taletn.com&gt;
Signed-off-by: Erik Faye-Lund &lt;kusmabite@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jc/magic-pathspec'</title>
<updated>2011-05-23T16:58:35Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-05-23T16:58:35Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=be5ab43566a7f9ea663349dbb9d7e83e270b3396'/>
<id>urn:sha1:be5ab43566a7f9ea663349dbb9d7e83e270b3396</id>
<content type='text'>
* jc/magic-pathspec:
  setup.c: Fix some "symbol not declared" sparse warnings
  t3703: Skip tests using directory name ":" on Windows
  revision.c: leave a note for "a lone :" enhancement
  t3703, t4208: add test cases for magic pathspec
  rev/path disambiguation: further restrict "misspelled index entry" diag
  fix overslow :/no-such-string-ever-existed diagnostics
  fix overstrict :&lt;path&gt; diagnosis
  grep: use get_pathspec() correctly
  pathspec: drop "lone : means no pathspec" from get_pathspec()
  Revert "magic pathspec: add ":(icase)path" to match case insensitively"
  magic pathspec: add ":(icase)path" to match case insensitively
  magic pathspec: futureproof shorthand form
  magic pathspec: add tentative ":/path/from/top/level" pathspec support
</content>
</entry>
<entry>
<title>magic pathspec: futureproof shorthand form</title>
<updated>2011-04-08T23:19:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-04-08T23:18:46Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=2f6c9760debfb4705f6efb5862e2b3a23b2b951c'/>
<id>urn:sha1:2f6c9760debfb4705f6efb5862e2b3a23b2b951c</id>
<content type='text'>
The earlier design was to take whatever non-alnum that the short format
parser happens to support, leaving the rest as part of the pattern, so a
version of git that knows '*' magic and a version that does not would have
behaved differently when given ":*Makefile".  The former would have
applied the '*' magic to the pattern "Makefile", while the latter would
used no magic to the pattern "*Makefile".

Instead, just reserve all non-alnum ASCII letters that are neither glob
nor regexp special as potential magic signature, and when we see a magic
that is not supported, die with an error message, just like the longhand
codepath does.

With this, ":%#!*Makefile" will always mean "%#!" magic applied to the
pattern "*Makefile", no matter what version of git is used (it is a
different matter if the version of git supports all of these three magic
matching rules).

Also make ':' without anything else to mean "there is no pathspec".  This
would allow differences between "git log" and "git log ." run from the top
level of the working tree (the latter simplifies no-op commits away from
the history) to be expressed from a subdirectory by saying "git log :".

Helped-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2011-04-03T20:53:11Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-04-03T20:53:11Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=44bc573436c98b7c6cd798af04c538f6e76f0f6e'/>
<id>urn:sha1:44bc573436c98b7c6cd798af04c538f6e76f0f6e</id>
<content type='text'>
* maint:
  Start preparing for 1.7.4.4
  pull: do not clobber untracked files on initial pull
  compat: add missing #include &lt;sys/resource.h&gt;

Conflicts:
	RelNotes
</content>
</entry>
<entry>
<title>compat: add missing #include &lt;sys/resource.h&gt;</title>
<updated>2011-04-03T19:21:34Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2011-03-18T20:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/git.git/commit/?id=ebae9ff95de2d0b36b061c7db833df4f7e01a41d'/>
<id>urn:sha1:ebae9ff95de2d0b36b061c7db833df4f7e01a41d</id>
<content type='text'>
Starting with commit c793430 (Limit file descriptors used by packs,
2011-02-28), git uses getrlimit to tell how many file descriptors it
can use.  Unfortunately it does not include the header declaring that
function, resulting in compilation errors:

 sha1_file.c: In function 'open_packed_git_1':
 sha1_file.c:718: error: storage size of 'lim' isn't known
 sha1_file.c:721: warning: implicit declaration of function 'getrlimit'
 sha1_file.c:721: error: 'RLIMIT_NOFILE' undeclared (first use in this function)
 sha1_file.c:718: warning: unused variable 'lim'

The standard header to include for this is &lt;sys/resource.h&gt; (which on
some systems itself requires declarations from &lt;sys/types.h&gt; or
&lt;sys/time.h&gt;).  Probably the problem was missed until now because in
current glibc sys/resource.h happens to be included by sys/wait.h.

MinGW does not provide sys/resource.h (and compat/mingw takes care of
providing getrlimit some other way), so add the missing #include to
the "#ifndef __MINGW32__" block in git-compat-util.h.

Reported-by: Stefan Sperling &lt;stsp@stsp.name&gt;
Tested-by: Stefan Sperling &lt;stsp@stsp.name&gt; [on OpenBSD]
Tested-by: Arnaud Lacombe &lt;lacombar@gmail.com&gt; [on FreeBSD 8]
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
