[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 --- Documentation/config.txt | 29 + Documentation/git-push.txt | 10 -- buil

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 --- Documentation/git-push.txt | 3 ++ builtin/push.c | 26 +--- t/

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 writes: > >> +Just to cl

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

2017-10-16 Thread Marius Paliga
on as well. Signed-off-by: Marius Paliga --- Documentation/git-push.txt | 3 ++ builtin/push.c | 12 t/t5545-push-options.sh| 77 ++ 3 files changed, 92 insertions(+) diff --git a/Documentation/git-push.txt b/Documentation/gi

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 --- Documentation/git-push.txt | 3 ++ builtin/push.c | 12 t/t5545-push-options.

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 --- Documentation/git-push.txt | 3 +++ builtin/push.c | 11 ++- t/t5545-push-options.sh| 48 ++ 3 files c

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 : > Marius Paliga writes: > >> @@ -505,6 +509,12 @@ static int git_push_config(const char *k, const >> char *v,

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

2017-10-11 Thread Marius Paliga
st_has_string(&push_options, item->string)) { New (fixed) patch follows... Signed-off-by: Marius Paliga --- Documentation/git-push.txt | 3 +++ builtin/push.c | 11 ++- t/t5545-push-options.sh| 48 ++ 3 files cha

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

2017-10-11 Thread Marius Paliga
Including proposed patch... Signed-off-by: Marius Paliga --- Documentation/git-push.txt | 3 +++ builtin/push.c | 11 ++- t/t5545-push-options.sh| 48 ++ 3 files changed, 61 insertions(+), 1 deletion(-) diff --git a

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 : > On Tue, Oct 3, 2017 at 3:15 AM, Marius Paliga wrote: >> There is a need to pass predefined push-option during "git push" >> without need to specify it explicitly. >> >&g

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 co