]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/worktree.c
timestamp_t: a new data type for timestamps
[thirdparty/git.git] / builtin / worktree.c
index 9993ded41aaaaa9a9291bf51b9949a97418a5e76..74f9b18d40c507db921efb4196710499b7c7f54a 100644 (file)
@@ -30,7 +30,7 @@ struct add_opts {
 
 static int show_only;
 static int verbose;
-static unsigned long expire;
+static timestamp_t expire;
 
 static int prune_worktree(const char *id, struct strbuf *reason)
 {
@@ -131,7 +131,7 @@ static int prune(int ac, const char **av, const char *prefix)
                OPT_END()
        };
 
-       expire = ULONG_MAX;
+       expire = TIME_MAX;
        ac = parse_options(ac, av, prefix, options, worktree_usage, 0);
        if (ac)
                usage_with_options(worktree_usage, options);