[PATCH] builtin/push.c: add push.pushOption config

2017-10-23 Thread Marius Paliga
(e.g. /etc/gitconfig, or $HOME/.gitconfig), they can be unset later in the more specific repository config by the empty string. Add tests and update documentation as well. Signed-off-by: Marius Paliga <marius.pal...@gmail.com> --- Documentation/config.txt | 29 + Documentat

Re: [PATCH] builtin/push.c: add push.pushOption config

2017-10-20 Thread Marius Paliga
> --o:: > ---push-option:: > +-o :: > +--push-option=:: > Transmit the given string to the server, which passes them to > the pre-receive as well as the post-receive hook. The given string > must not contain a NUL or LF character. > - When no `--push-option ` is given

[PATCH] builtin/push.c: add push.pushOption config

2017-10-19 Thread Marius Paliga
(e.g. /etc/gitconfig, or $HOME/.gitconfig), they can be unset later in the more specific repository config by the empty string. Add tests and update documentation as well. Signed-off-by: Marius Paliga <marius.pal...@gmail.com> --- Documentation/git-push.txt | 3 ++ builtin/push.c

Re: [PATCH] patch reply

2017-10-17 Thread Marius Paliga
I just sent a patch to a new thread which is not what I wanted. However I already sent the same patch a few days ago: https://public-inbox.org/git/CAK7vU=2ePR3jQsgu=rxsmrxytaahqxc0sfrn5yozlzqzp2z...@mail.gmail.com/ 2017-10-17 6:01 GMT+02:00 Junio C Hamano : > Thais Diniz

[PATCH] Added support for new configuration parameter push.pushOption

2017-10-17 Thread Marius Paliga
on as well. Signed-off-by: Marius Paliga <marius.pal...@gmail.com> --- Documentation/git-push.txt | 3 ++ builtin/push.c | 12 t/t5545-push-options.sh| 77 ++ 3 files changed, 92 insertions(+) diff --git a/Documentatio

Re: Enhancement request: git-push: Allow (configurable) default push-option

2017-10-13 Thread Marius Paliga
nfig (/etc/gitconfig), they can be unset later in the more specific repository config by setting the string to the empty string. Add tests and documentation as well. Signed-off-by: Marius Paliga <marius.pal...@gmail.com> --- Documentation/git-push.txt | 3 ++ builtin/push.c

Re: Enhancement request: git-push: Allow (configurable) default push-option

2017-10-12 Thread Marius Paliga
ory config by setting the string to the empty string. Add tests and documentation as well. Signed-off-by: Marius Paliga <marius.pal...@gmail.com> --- Documentation/git-push.txt | 3 +++ builtin/push.c | 11 ++- t/t5545-push-op

Re: Enhancement request: git-push: Allow (configurable) default push-option

2017-10-12 Thread Marius Paliga
In the light of the above the "default" may be correct, but I don't have a problem with any name. Marius 2017-10-11 15:38 GMT+02:00 Junio C Hamano <gits...@pobox.com>: > Marius Paliga <marius.pal...@gmail.com> writes: > >> @@ -505,6 +509,12 @@ static in

Re: Enhancement request: git-push: Allow (configurable) default push-option

2017-10-11 Thread Marius Paliga
s_string(_options, item->string)) { New (fixed) patch follows... Signed-off-by: Marius Paliga <marius.pal...@gmail.com> --- Documentation/git-push.txt | 3 +++ builtin/push.c | 11 ++- t/t5545-push-options.sh| 48 ++ 3 fi

Re: Enhancement request: git-push: Allow (configurable) default push-option

2017-10-11 Thread Marius Paliga
Including proposed patch... Signed-off-by: Marius Paliga <marius.pal...@gmail.com> --- Documentation/git-push.txt | 3 +++ builtin/push.c | 11 ++- t/t5545-push-options.sh| 48 ++ 3 files changed, 61 insertions(+), 1 de

Re: Enhancement request: git-push: Allow (configurable) default push-option

2017-10-04 Thread Marius Paliga
Hi Stefan, I will look at it. Thanks, Marius 2017-10-03 18:53 GMT+02:00 Stefan Beller <sbel...@google.com>: > On Tue, Oct 3, 2017 at 3:15 AM, Marius Paliga <marius.pal...@gmail.com> wrote: >> There is a need to pass predefined push-option during "git push&q

Enhancement request: git-push: Allow (configurable) default push-option

2017-10-03 Thread Marius Paliga
There is a need to pass predefined push-option during "git push" without need to specify it explicitly. In another words we need to have a new "git config" variable to specify string that will be automatically passed as "--push-option" when pushing to remote. Something like the following: git