summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-07-02 12:33:52 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-07-09 16:42:22 -0700
commit8e676e8ba567eccee1510b90ec2e0364dcc2f3b4 (patch)
tree341634278902944c38c12eb1a39422f3f505f50c /builtin
parentsha1_name.c: introduce get_sha1_committish() (diff)
downloadtgif-8e676e8ba567eccee1510b90ec2e0364dcc2f3b4.tar.xz
revision.c: allow handle_revision_arg() to take other flags
The existing "cant_be_filename" that tells the function that the caller knows the arg is not a path (hence it does not have to be checked for absense of the file whose name matches it) is made into a bit in the flag word. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 0f2e7b8f5c..48ccaddadf 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -2290,7 +2290,7 @@ static void get_object_list(int ac, const char **av)
}
die("not a rev '%s'", line);
}
- if (handle_revision_arg(line, &revs, flags, 1))
+ if (handle_revision_arg(line, &revs, flags, REVARG_CANNOT_BE_FILENAME))
die("bad revision '%s'", line);
}