Files
git/builtin
Jeff King 95b567c7c3 use skip_prefix to avoid repeating strings
It's a common idiom to match a prefix and then skip past it
with strlen, like:

  if (starts_with(foo, "bar"))
	  foo += strlen("bar");

This avoids magic numbers, but means we have to repeat the
string (and there is no compiler check that we didn't make a
typo in one of the strings).

We can use skip_prefix to handle this case without repeating
ourselves.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-06-20 10:44:45 -07:00
..
2014-06-06 11:26:50 -07:00
2014-04-08 12:00:28 -07:00
2014-06-16 10:07:15 -07:00
2014-03-14 14:25:31 -07:00
2014-01-17 12:21:20 -08:00
2014-02-27 14:01:30 -08:00
2014-06-16 12:18:12 -07:00
2014-06-03 12:06:41 -07:00
2014-04-08 12:00:33 -07:00
2014-05-19 13:39:54 -07:00
2014-04-30 10:30:02 -07:00
2014-02-27 14:01:48 -08:00
2014-01-17 12:21:20 -08:00