Re: [PATCH 09/14] update submodules: add submodule_go_from_to

2017-02-14 Thread brian m. carlson
On Tue, Feb 14, 2017 at 04:34:18PM -0800, Stefan Beller wrote: > + prepare_submodule_repo_env_no_git_dir(_array); > + > + cp.git_cmd = 1; > + cp.no_stdin = 1; > + cp.dir = path; > + > + argv_array_pushf(, "--super-prefix=%s/", path); > + argv_array_pushl(, "read-tree",

[PATCH 09/14] update submodules: add submodule_go_from_to

2017-02-14 Thread Stefan Beller
In later patches we introduce the options and flag for commands that modify the working directory, e.g. git-checkout. This piece of code will be used universally for all these working tree modifications as it * supports dry run to answer the question: "Is it safe to change the submodule to this