Merge branch 'mg/timestamp-t-fix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 01:47:52 +0000 (10:47 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 01:47:52 +0000 (10:47 +0900)
A mismerge fix.

* mg/timestamp-t-fix:
name-rev: change ULONG_MAX to TIME_MAX

1  2 
builtin/name-rev.c
diff --combined builtin/name-rev.c
index c41ea7c2a62ba868061884e511256c24f4d020d9,fff2ea7436f089d96fe43b574fc7a870d5ceada5..598da6c8bc75e9de50f85eac78d3051f27f96a6c
@@@ -1,6 -1,5 +1,6 @@@
  #include "builtin.h"
  #include "cache.h"
 +#include "config.h"
  #include "commit.h"
  #include "tag.h"
  #include "refs.h"
@@@ -17,7 -16,7 +17,7 @@@ typedef struct rev_name 
        int from_tag;
  } rev_name;
  
 -static long cutoff = LONG_MAX;
 +static timestamp_t cutoff = TIME_MAX;
  
  /* How many generations are maximally preferred over _one_ merge traversal? */
  #define MERGE_TRAVERSAL_WEIGHT 65535
@@@ -130,7 -129,7 +130,7 @@@ static int subpath_matches(const char *
        const char *subpath = path;
  
        while (subpath) {
 -              if (!wildmatch(filter, subpath, 0, NULL))
 +              if (!wildmatch(filter, subpath, 0))
                        return subpath - path;
                subpath = strchr(subpath, '/');
                if (subpath)
@@@ -253,7 -252,7 +253,7 @@@ static int name_ref(const char *path, c
                struct commit *commit = (struct commit *)o;
                int from_tag = starts_with(path, "refs/tags/");
  
-               if (taggerdate == ULONG_MAX)
+               if (taggerdate == TIME_MAX)
                        taggerdate = ((struct commit *)o)->date;
                path = name_ref_abbrev(path, can_abbreviate_output);
                name_rev(commit, xstrdup(path), taggerdate, 0, 0,