• J
    replace has_extension with ends_with · 2975c770
    Jeff King 提交于
    These two are almost the same function, with the exception
    that has_extension only matches if there is content before
    the suffix. So ends_with(".exe", ".exe") is true, but
    has_extension would not be.
    
    This distinction does not matter to any of the callers,
    though, and we can just replace uses of has_extension with
    ends_with. We prefer the "ends_with" name because it is more
    generic, and there is nothing about the function that
    requires it to be used for file extensions.
    Signed-off-by: NJeff King <peff@peff.net>
    Signed-off-by: NJunio C Hamano <gitster@pobox.com>
    2975c770
sha1_file.c 80.5 KB