Feature suggestion: support arguments for GIT_PROXY_COMMAND & core.gitproxy

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

 



Could /connect.c be patched to support multiple arguments in ENV[GIT_PROXY_COMMAND] and git config core.gitproxy?

For instance, something like :
 GIT_PROXY_COMMAND="myproxyscript arg1 arg2"

or (way more useful):
git config core.gitproxy \
 '"myproxyscript -mode git -proxy joey@xxxxxxxxxxxxxx -proxy joey@xxxxxxxxxxxxxxxxxxx" for foocorp.com$'

Its slightly annoying to maintain and distribute custom copies of myproxyscript that carry the repo-specific proxy arguments inline just because git won't pass those arguments itself (arguments that a repo's .git/config can easily store).

I think supporting tokens (ala ssh's ProxyCommand - %h=repohost, %p=repoport, %u=repouser) would be awesome, but that change would not be backward-compatible with existing .git/config files or GIT_PROXY_COMMAND utilizing-scripts. Its enough to assume that "$host $port" will always be appended to the gitproxy arg list.

Thanks for reading, (and thnaks for git!)
-joey
--
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]