fetch: define shallow boundary with --shallow-since
[gitweb.git] / builtin / fetch-pack.c
index 8332d3d5209e0f3b8671a5adb7947f0a431ec8e1..0402e2756b9ad76972514153c2d49e77ce1babef 100644 (file)
@@ -104,6 +104,10 @@ int cmd_fetch_pack(int argc, const char **argv, const char *prefix)
                        args.depth = strtol(arg, NULL, 0);
                        continue;
                }
+               if (skip_prefix(arg, "--shallow-since=", &arg)) {
+                       args.deepen_since = xstrdup(arg);
+                       continue;
+               }
                if (!strcmp("--no-progress", arg)) {
                        args.no_progress = 1;
                        continue;