Merge branch 'rs/resolve-ref-optional-result'
[gitweb.git] / builtin / rev-parse.c
index 9f24004c0a310d22808c86ab6ee65e6b296fe70c..b9c13d3d9df6cf5f90e990d181e268f698ac93e4 100644 (file)
@@ -868,6 +868,11 @@ int cmd_rev_parse(int argc, const char **argv, const char *prefix)
                                                : "false");
                                continue;
                        }
+                       if (!strcmp(arg, "--is-shallow-repository")) {
+                               printf("%s\n", is_repository_shallow() ? "true"
+                                               : "false");
+                               continue;
+                       }
                        if (!strcmp(arg, "--shared-index-path")) {
                                if (read_cache() < 0)
                                        die(_("Could not read the index"));