cocci: apply the "cache.h" part of "the_repository.pending"
Apply the part of "the_repository.pending.cocci" pertaining to "cache.h". Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
7258e892d2
commit
d850b7a545
@ -65,20 +65,20 @@ int cmd_range_diff(int argc, const char **argv, const char *prefix)
|
||||
|
||||
if (dash_dash == 3 ||
|
||||
(dash_dash < 0 && argc > 2 &&
|
||||
!get_oid_committish(argv[0], &oid) &&
|
||||
!get_oid_committish(argv[1], &oid) &&
|
||||
!get_oid_committish(argv[2], &oid))) {
|
||||
!repo_get_oid_committish(the_repository, argv[0], &oid) &&
|
||||
!repo_get_oid_committish(the_repository, argv[1], &oid) &&
|
||||
!repo_get_oid_committish(the_repository, argv[2], &oid))) {
|
||||
if (dash_dash < 0)
|
||||
; /* already validated arguments */
|
||||
else if (get_oid_committish(argv[0], &oid))
|
||||
else if (repo_get_oid_committish(the_repository, argv[0], &oid))
|
||||
usage_msg_optf(_("not a revision: '%s'"),
|
||||
builtin_range_diff_usage, options,
|
||||
argv[0]);
|
||||
else if (get_oid_committish(argv[1], &oid))
|
||||
else if (repo_get_oid_committish(the_repository, argv[1], &oid))
|
||||
usage_msg_optf(_("not a revision: '%s'"),
|
||||
builtin_range_diff_usage, options,
|
||||
argv[1]);
|
||||
else if (get_oid_committish(argv[2], &oid))
|
||||
else if (repo_get_oid_committish(the_repository, argv[2], &oid))
|
||||
usage_msg_optf(_("not a revision: '%s'"),
|
||||
builtin_range_diff_usage, options,
|
||||
argv[2]);
|
||||
|
Reference in New Issue
Block a user