Re: [PATCH v2 10/12] t5520: failing test for pull --all with no configured upstream
- From
Paul Tan <pyokagan@gmail.com>
- Date
- May 9, 2015, 03:10 UTC
- Message-ID
- <CACRoPnT-9Z-GY9Orid+-nUgTGENakOA8DDD8uUBJGMBw_gbqWQ@mail.gmail.com>
- In-Reply-To
- <xmqq3838p6jw.fsf@gitster.dls.corp.google.com>
Hi Junio,
On Fri, May 8, 2015 at 2:48 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Paul Tan <pyokagan@gmail.com> writes: > >> .... This can be >> done with the current git-pull.sh, but would be easier with the >> superior C parse-options API. > > Just this part, but I thought parse-options API is available to > scripts via "rev-parse --parseopt".
Yes, it kind of is, but my impression is that it only validates command-line arguments -- we still have to loop over each of them which means more code has to be written as compared to the C version (especially if we want to validate all the git-fetch switches as well).
Thanks, Paul