Eric Sunshine <sunshine@xxxxxxxxxxxxxx> writes: >> int launch_editor(const char *path, struct strbuf *buffer, >> - const char *const *env); >> + const struct strvec *env); > > Typically, we would want to have the API accept the narrowest type in > order to remain as general as possible, but this change makes it a > requirement that a caller must have the much wider `strvec` type at > hand, which seems counterproductive. Yup, very good point. I do not see the point of this change even after looking at the whole of this patch. It is not like (being const) this would make it easier for launch_editor() to further tweak the environment. Let's not do this.