Re: [RFC/PATCH] push: deny policy to prevent pushes to unwanted remotes.

2016-06-20 Thread Antoine Queru
> > >> ... > >> > > > > Hello Rémi, thanks you for your input ! I'll make the appropriate changes > > and send a new version as soon as i can ! > > Hi Antoine, > > do you have an updated version already or is this the one I should look at? > http://article.gmane.org/gmane.comp.version-control

Re: [PATCH] push: deny policy to prevent pushes to unwanted remotes.

2016-06-06 Thread Antoine Queru
Hello Lars, thanks for your reply. > > > > On 30 May 2016, at 06:45, Antoine Queru > > wrote: > > > > Currently, a user wanting to prevent accidental pushes to the wrong remote > > has to create a pre-push hook. > > The feature offers a configur

Re: [RFC/PATCH] push: deny policy to prevent pushes to unwanted remotes.

2016-06-06 Thread Antoine Queru
- Mail original - > Hi Antoine, > > Antoine Queru writes: > > [...] > > +For example, if we set up the configuration variables like this: > > + > > +--- > > +git config --add remote.pushBlacklist repository.com >

[RFC/PATCH] push: deny policy to prevent pushes to unwanted remotes.

2016-06-04 Thread Antoine Queru
elist/blacklist feature is disabled since the default policy is "allow". Signed-off-by: Antoine Queru Signed-off-by: Francois Beutin Signed-off-by: Matthieu Moy --- Changes since v1 : Scheme handled. Documentation fixed and moved. Option "-no-verify" added to dismiss this pro

Re: [PATCH v5] upload-pack.c: use parse-options API

2016-06-01 Thread Antoine Queru
in the From and > > Signed-off-by as the Git history will remain after the current adress > > become invalid. > > I was wondering about that "ensimag." part myself as I had a vague > recollection of your mentioning it in your class projects in > previous years. >

[PATCH v6] upload-pack.c: use parse-options API

2016-05-31 Thread Antoine Queru
Use the parse-options API rather than a hand-rolled option parser. Description for --stateless-rpc and --advertise-refs come from 42526b4 (Add stateless RPC options to upload-pack, receive-pack, 2009-10-30). Signed-off-by: Antoine Queru Signed-off-by: Matthieu Moy --- Change since v5 : Signed

Re: [PATCH v5] upload-pack.c: use parse-options API

2016-05-31 Thread Antoine Queru
Hello Junio, thanks for your answer. The next version (and hopefully the last) will come fast. > > From: Antoine Queru > > Don't you want to be known to the project as the email that matches > your Signed-off-by: line? Thanks for noticing it, it will be updated.

[PATCH v5] upload-pack.c: use parse-options API

2016-05-30 Thread Antoine Queru
From: Antoine Queru Use the parse-options API rather than a hand-rolled option parser. Description for --stateless-rpc and --advertise-refs come from 42526b4 (Add stateless RPC options to upload-pack, receive-pack, 2009-10-30). Signed-off-by: Antoine Queru Signed-off-by: Matthieu Moy

Re: [PATCH v4] upload-pack.c: use of parse-options API

2016-05-30 Thread Antoine Queru
Hello Eric, Thank you for answer. Your remarks have been added in the next version. > > + OPT_BOOL(0, "strict", &strict, > > +N_("do not try /.git/ if is > > no Git directory")), > > Use of OPT_BOOL introduces a --no-strict option which didn't exist > before.

[PATCH] push: deny policy to prevent pushes to unwanted remotes.

2016-05-30 Thread Antoine Queru
elist/blacklist feature is disabled since the default policy is "allow". Signed-off-by: Antoine Queru Signed-off-by: Francois Beutin Signed-off-by: Matthieu Moy --- This is the first implementation of the feature proposed in SoCG 2016. The conversation about it can be found her

[PATCH v4] upload-pack.c: use of parse-options API

2016-05-27 Thread Antoine Queru
Option parsing now uses the parser API instead of a local parser. Code is now more compact. Description for --stateless-rpc and --advertise-refs come from the commit 42526b4 (Add stateless RPC options to upload-pack, receive-pack, 2009-10-30). Signed-off-by: Antoine Queru Signed-off-by

[PATCH v3] upload-pack.c: use of parse-options API

2016-05-23 Thread Antoine Queru
Option parsing now uses the parser API instead of a local parser. Code is now more compact. Description for -stateless-rpc and --advertise-refs come from the commit 42526b4 (Add stateless RPC options to upload-pack, receive-pack, 2009-10-30). Signed-off-by: Antoine Queru Signed-off-by: Matthieu

[PATCH v2] upload-pack.c: use of parse-options API

2016-05-19 Thread Antoine Queru
Option parsing now uses the parser API instead of a local parser. Code is now more compact. Description for -stateless-rpc and --advertise-refs come from the commit (gmane/131517) where there were implemented. Signed-off-by: Antoine Queru Signed-off-by: Matthieu Moy --- diff v1 v2: Usage

Re: [PATCH] upload-pack.c: use of parse-options API

2016-05-19 Thread Antoine Queru
Thanks for your input. > > -static const char upload_pack_usage[] = "git upload-pack [--strict] > > [--timeout=] "; > > +static const char * const upload_pack_usage[] = { > > + N_("git upload-pack [--strict] [--timeout=] "), > > + NULL > > +}; > > Do we need to enumerate the options here now?

[PATCH] upload-pack.c: use of parse-options API

2016-05-18 Thread Antoine Queru
Option parsing now uses the parser API instead of a local parser. Code is now more compact. Signed-off-by: Antoine Queru Signed-off-by: Matthieu Moy --- This is our first project as a warm up. It was taken from the GSoC microproject list. upload-pack.c | 51

Ensimag students contribution

2016-05-16 Thread Antoine Queru
Hello everyone, We are a team of 4 students from Ensimag (french computer science engineering school) tutored by Matthieu Moy, doing a full-time Git project, planning to work on few features during the next month. We would like to start with microproject first, "Add more builtin patterns for