diff options
author | René Scharfe <l.s.r@web.de> | 2017-08-25 21:04:54 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-25 23:06:08 +0200 |
commit | e4905019df568762d5f9ab66227eefcb32915b40 (patch) | |
tree | 8e3f7cf1909184c69bd3011ac8aef175756837e4 /fmt-merge-msg.h | |
parent | Prepare for 2.14.2 (diff) | |
download | git-e4905019df568762d5f9ab66227eefcb32915b40.tar.xz git-e4905019df568762d5f9ab66227eefcb32915b40.zip |
apply: check date of potential epoch timestamps first
has_epoch_timestamp() looks for time stamps that amount to either
1969-12-31 24:00 or 1970-01-01 00:00 after applying the time zone
offset. Move the check for these two dates up, set the expected hour
based on which one is found, or exit early if none of them are present,
thus avoiding to engage the regex machinery for newer dates.
This also gets rid of two magic string length constants.
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fmt-merge-msg.h')
0 files changed, 0 insertions, 0 deletions