diff options
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/rev-parse.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/builtin/rev-parse.c b/builtin/rev-parse.c index 9f24004c0a..b9c13d3d9d 100644 --- a/builtin/rev-parse.c +++ b/builtin/rev-parse.c @@ -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")); |