Re: [PATCH 20/24] http-fetch: add missing initialization of argv0_path
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Nov 10, 2009, 21:56 UTC
- Message-ID
- <200911102256.08627.j6t@kdbg.org>
- In-Reply-To
- <7vpr7q6sw8.fsf@alter.siamese.dyndns.org>
On Dienstag, 10. November 2009, Junio C Hamano wrote:
Show 13 quoted lines
> Jonathan Nieder <jrnieder@gmail.com> writes: > > Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> > > --- > > Why do you have inclusion of "exec_cmd.h" in [19/24]? As far as I can > tell, nothing you do in that patch depends on it. > > According to c6dfb39 (remote-curl: add missing initialization of > argv0_path, 2009-10-13), this patch is necessary (and you must include > "exec_cmd.h") on MinGW, regardless of the "give help upon -h" topic. > > I think this should be ejected from your series go directly to 'maint', or > am I mistaken?
You are right.
This command (in bash):
comm <(git grepc -l main\( *.c) <(git grepc -l extract_argv0 *.c)
shows programs in the 1st column that have main(), but do not call git_extract_argv0_path. One remaining candidate is show-index.c, but its only call-out is sha1_to_hex(), which doesn't use any other services.
http-fetch.c is the only file that needs this patch.
-- Hannes