Re: [PATCH 2/3] Test environment of git-remote-mw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Simon.Cathebras" <Simon.Cathebras@xxxxxxxxxxxxxxx> writes:

>>> +wiki_getpage () {
>>> +	../test-gitmw.pl get_page -p "$1" "$2"
>>> +}
>> Any reason why test-gitmw.pl and wiki_getpage have this slightly
>> different API? The perl version has a "-p" flag, and the shell command
>> has only positionnal arguments.
> The "-p" flag exists to specify if we have to use the admin login on
> wiki to do the command.

(then, maybe --admin would be a better name?)

> For instance, here we fetch a page from the wiki with Admin privilege.
> Others arguments remains the same.

What I don't understand is why you need the flexibility to choose
between admin and non-admin on the Perl side, and you don't need in on
the shell side.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]