Files
git/builtin
Jeff King 903fc7da44 name-rev: replace static buffer with strbuf
When name-rev needs to format an actual name, we do so into
a fixed-size buffer. That includes the actual ref tip, as
well as any traversal information. Since refs can exceed
1024 bytes, this means you can get a bogus result. E.g.,
doing:

   git tag $(perl -e 'print join("/", 1..1024)')
   git describe --contains HEAD^

results in ".../282/283", when it should be
".../1023/1024~1".

We can solve this by using a heap buffer. We'll use a
strbuf, which lets us write into the same buffer from our
loop without having to reallocate.

Signed-off-by: Jeff King <peff@peff.net>
2017-03-30 14:59:50 -07:00
..
2016-11-22 13:55:20 -08:00
2017-03-17 13:50:24 -07:00
2017-03-17 13:50:25 -07:00
2017-03-17 13:50:25 -07:00
2017-01-30 14:17:00 -08:00
2017-03-17 13:50:23 -07:00
2017-03-17 13:50:25 -07:00
2016-09-29 15:42:18 -07:00
2017-01-18 15:12:15 -08:00
2017-03-17 13:50:25 -07:00
2017-01-31 13:14:56 -08:00
2015-10-05 13:20:08 -07:00
2017-03-27 10:59:26 -07:00
2017-03-22 15:41:21 -07:00
2017-03-24 13:07:37 -07:00
2017-01-23 18:51:56 -08:00