aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/submodule--helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/submodule--helper.c')
-rw-r--r--builtin/submodule--helper.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c
index 07a1935cbe..fcd73abe53 100644
--- a/builtin/submodule--helper.c
+++ b/builtin/submodule--helper.c
@@ -616,9 +616,6 @@ static void status_submodule(const char *path, const struct object_id *ce_oid,
struct rev_info rev = REV_INFO_INIT;
struct strbuf buf = STRBUF_INIT;
const char *git_dir;
- struct setup_revision_opt opt = {
- .free_removed_argv_elements = 1,
- };
if (validate_submodule_path(path) < 0)
die(NULL);
@@ -655,7 +652,7 @@ static void status_submodule(const char *path, const struct object_id *ce_oid,
repo_init_revisions(the_repository, &rev, NULL);
rev.abbrev = 0;
- setup_revisions(diff_files_args.nr, diff_files_args.v, &rev, &opt);
+ setup_revisions_from_strvec(&diff_files_args, &rev, NULL);
run_diff_files(&rev, 0);
if (!diff_result_code(&rev)) {
@@ -1094,9 +1091,6 @@ static int compute_summary_module_list(struct object_id *head_oid,
{
struct strvec diff_args = STRVEC_INIT;
struct rev_info rev;
- struct setup_revision_opt opt = {
- .free_removed_argv_elements = 1,
- };
struct module_cb_list list = MODULE_CB_LIST_INIT;
int ret = 0;
@@ -1114,7 +1108,7 @@ static int compute_summary_module_list(struct object_id *head_oid,
repo_init_revisions(the_repository, &rev, info->prefix);
rev.abbrev = 0;
precompose_argv_prefix(diff_args.nr, diff_args.v, NULL);
- setup_revisions(diff_args.nr, diff_args.v, &rev, &opt);
+ setup_revisions_from_strvec(&diff_args, &rev, NULL);
rev.diffopt.output_format = DIFF_FORMAT_NO_OUTPUT | DIFF_FORMAT_CALLBACK;
rev.diffopt.format_callback = submodule_summary_callback;
rev.diffopt.format_callback_data = &list;
mp;follow=1'>parse-opt: ignore negation of OPT_NONEG for ambiguity checksAndreas Schwab3-0/+28 2009-09-26make 'git clone' ask the remote only for objects it cares aboutNicolas Pitre1-10/+17 2009-09-25send-email: fix obscure error when encryption=tls and smtp cannot connectYakov Lerner1-1/+1 2009-09-25bash: teach 'git checkout' optionsSZEDER Gábor1-1/+15 2009-09-25perl/Makefile.PL: detect MakeMaker versions incompatible with DESTDIRBrandon Casey1-0/+8 2009-09-22pull: Clarify "helpful" message for another corner casev1.6.5-rc2Junio C Hamano1-1/+6 2009-09-22Update "describe" documentation to match realityThiago Farina1-1/+1 2009-09-22bash: teach 'git reset --patch'SZEDER Gábor1-1/+1 2009-09-22bash: update 'git stash' completionSZEDER Gábor1-4/+16 2009-09-22bash: rename __git_find_subcommand() to __git_find_on_cmdline()SZEDER Gábor1-7/+7 2009-09-22pay attention to DESTDIR when building with NO_PERL_MAKEMAKERJunio C Hamano1-4/+4 2009-09-22pre-commit.sample: add comment re tr portability; fix grammarJim Meyering1-4/+7 2009-09-21Update Release Notes to 1.6.5Junio C Hamano1-4/+14 2009-09-21test-genrandom: ensure stdout is set to _O_BINARY on WindowsJohannes Sixt1-2/+1 2009-09-21gitk: Work around leftover temporary save filePat Thoyts1-0/+1 2009-09-20push: Correctly initialize nonfastforward in transport_push.Matthieu Moy1-1/+2 2009-09-18Tag GIT_VERSION when Git is built with MSVCMarius Storm-Olsen1-0/+1 2009-09-18Add scripts to generate projects for other buildsystems (MSVC vcproj, QMake)Marius Storm-Olsen8-1/+1503