Files
git/builtin
Jean-Jacques Lafay d01bac0ef7 git tag --contains: avoid stack overflow
In large repos, the recursion implementation of contains(commit,
commit_list) may result in a stack overflow. Replace the recursion with
a loop to fix it.

This problem is more apparent on Windows than on Linux, where the stack
is more limited by default.

See also this thread on the msysGit list:

	https://groups.google.com/d/topic/msysgit/FqT6boJrb2g/discussion

[jes: re-written to imitate the original recursion more closely]

Thomas Braun pointed out several documentation shortcomings.

Tests are run only if ulimit -s is available.  This means they cannot
be run on Windows.

Signed-off-by: Jean-Jacques Lafay <jeanjacques.lafay@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Tested-by: Stepan Kasal <kasal@ucw.cz>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-05-15 09:36:44 +02:00
..
2014-03-31 15:29:27 -07:00
2013-12-17 12:02:44 -08:00
2014-01-10 10:33:11 -08:00
2014-03-31 15:29:33 -07:00
2014-01-17 12:21:20 -08:00
2013-12-30 12:27:01 -08:00
2014-03-31 15:29:27 -07:00
2014-03-31 15:29:27 -07:00
2014-01-17 12:21:20 -08:00
2013-12-27 14:57:50 -08:00
2013-12-17 12:02:44 -08:00
2014-01-17 12:21:20 -08:00
2014-05-15 09:36:44 +02:00