diff --git a/builtin-rev-parse.c b/builtin-rev-parse.c
index c7712748bc034ba7ef39bc3b993093bea012d084..d53deaa3691c7b57e215f3f33c44881c4f397527 100644 (file)
--- a/builtin-rev-parse.c
+++ b/builtin-rev-parse.c
}
}
}
}
-static int show_reference(const char *refname, const unsigned char *sha1, void *cb_data)
+static int show_reference(const char *refname, const unsigned char *sha1, int flag, void *cb_data)
{
show_rev(NORMAL, sha1, refname);
return 0;
{
show_rev(NORMAL, sha1, refname);
return 0;
printf("%s/.git\n", cwd);
continue;
}
printf("%s/.git\n", cwd);
continue;
}
+ if (!strcmp(arg, "--is-inside-git-dir")) {
+ printf("%s\n", is_inside_git_dir() ? "true"
+ : "false");
+ continue;
+ }
if (!strncmp(arg, "--since=", 8)) {
show_datestring("--max-age=", arg+8);
continue;
if (!strncmp(arg, "--since=", 8)) {
show_datestring("--max-age=", arg+8);
continue;