]> git.ipfire.org Git - thirdparty/git.git/commit - apply.c
apply: remove epoch date from regex
authorRené Scharfe <l.s.r@web.de>
Fri, 25 Aug 2017 19:06:28 +0000 (21:06 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Aug 2017 21:06:09 +0000 (14:06 -0700)
commit0db3dc75f30239aa3b36071c7b9ff21c16ba449a
tree11e43bd7bdc21c097edfd8cf8b20ff2c186fa5ec
parente4905019df568762d5f9ab66227eefcb32915b40
apply: remove epoch date from regex

We check the date of epoch timestamp candidates already with
starts_with().  Move beyond that part using skip_prefix() instead of
checking it again using a regular expression.  Also group the minutes
part, so that we can access them using a substring match instead of
using a magic number.

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c