diff --git a/rev-parse.c b/rev-parse.c
index 62e16af33c29ddd6a9c8b2d9755dc11804d86bc4..4e2d9fbdf6f86e5d2ff28984861d443ca4cdc656 100644 (file)
--- a/rev-parse.c
+++ b/rev-parse.c
"--all",
"--bisect",
"--dense",
"--all",
"--bisect",
"--dense",
+ "--branches",
"--header",
"--max-age=",
"--max-count=",
"--header",
"--max-age=",
"--max-count=",
"--objects-edge",
"--parents",
"--pretty",
"--objects-edge",
"--parents",
"--pretty",
+ "--remotes",
"--sparse",
"--sparse",
+ "--tags",
"--topo-order",
"--date-order",
"--unpacked",
"--topo-order",
"--date-order",
"--unpacked",
int i, as_is = 0, verify = 0;
unsigned char sha1[20];
const char *prefix = setup_git_directory();
int i, as_is = 0, verify = 0;
unsigned char sha1[20];
const char *prefix = setup_git_directory();
-
+
git_config(git_default_config);
for (i = 1; i < argc; i++) {
git_config(git_default_config);
for (i = 1; i < argc; i++) {
for_each_ref(show_reference);
continue;
}
for_each_ref(show_reference);
continue;
}
+ if (!strcmp(arg, "--branches")) {
+ for_each_branch_ref(show_reference);
+ continue;
+ }
+ if (!strcmp(arg, "--tags")) {
+ for_each_tag_ref(show_reference);
+ continue;
+ }
+ if (!strcmp(arg, "--remotes")) {
+ for_each_remote_ref(show_reference);
+ continue;
+ }
if (!strcmp(arg, "--show-prefix")) {
if (prefix)
puts(prefix);
if (!strcmp(arg, "--show-prefix")) {
if (prefix)
puts(prefix);