Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-04-15 Thread Derrick Stolee
On 2/5/2019 2:52 PM, Ævar Arnfjörð Bjarmason wrote: > From: William Hubbs > -const char *fmt_name(const char *name, const char *email) > +const char *fmt_name(enum want_ident whose_ident) > { > - return fmt_ident(name, email, NULL, IDENT_STRICT | IDENT_NO_DATE); > + char *name = NULL; > +

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-14 Thread William Hubbs
On Wed, Feb 13, 2019 at 02:37:48PM -0800, Junio C Hamano wrote: > William Hubbs writes: > > > I am writing back onn this thread because I'm not quite sure of the > > status. v5 of the patch seemed ok, but there were some changes discussed > > that would have created a v6. The v6 changes though we

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-13 Thread Junio C Hamano
William Hubbs writes: > I am writing back onn this thread because I'm not quite sure of the > status. v5 of the patch seemed ok, but there were some changes discussed > that would have created a v6. The v6 changes though were never really > clear. I'm not sure whether I am supposed to be doing so

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-13 Thread William Hubbs
Hi Junio, I am writing back onn this thread because I'm not quite sure of the status. v5 of the patch seemed ok, but there were some changes discussed that would have created a v6. The v6 changes though were never really clear. I'm not sure whether I am supposed to be doing something more or wheth

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-06 Thread Junio C Hamano
Jeff King writes: > An alternative view is that anybody who calls git_author_info() to > create a commit _should_ be checking author_ident_sufficiently_given(), > and it's a bug that they're not. > > I.e., should we be doing something like this (and probably some other > spots, too): > > diff --g

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-06 Thread William Hubbs
On Wed, Feb 06, 2019 at 01:26:12PM -0500, Jeff King wrote: > On Wed, Feb 06, 2019 at 10:28:34AM +0100, Ævar Arnfjörð Bjarmason wrote: > > > I did some further digging. One of the confusing things is that we've > > been carrying dead code since 2012 to set this > > author_ident_explicitly_given var

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-06 Thread William Hubbs
On Wed, Feb 06, 2019 at 10:28:34AM +0100, Ævar Arnfjörð Bjarmason wrote: > > William, is that something you're intererested in carrying forward? I > can also help if you want. Sorry your first contribution to git has > turned into this mess of re-rolls, as often happens we find that when > trying

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-06 Thread Jeff King
On Wed, Feb 06, 2019 at 10:28:34AM +0100, Ævar Arnfjörð Bjarmason wrote: > I did some further digging. One of the confusing things is that we've > been carrying dead code since 2012 to set this > author_ident_explicitly_given variable. We can just apply this on top of > master: > [...] > @@ -4

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-06 Thread Ævar Arnfjörð Bjarmason
On Tue, Feb 05 2019, Ævar Arnfjörð Bjarmason wrote: > On Tue, Feb 05 2019, Junio C Hamano wrote: > >> Ævar Arnfjörð Bjarmason writes: >> >>> +static int set_ident_internal(const char *var, const char *value, >>> + struct strbuf *sb, const int flag) >>> +{ >>> + if (!val

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-06 Thread Ævar Arnfjörð Bjarmason
On Wed, Feb 06 2019, William Hubbs wrote: > On Tue, Feb 05, 2019 at 10:14:37PM +0100, Ævar Arnfjörð Bjarmason wrote: >> >> On Tue, Feb 05 2019, Junio C Hamano wrote: >> >> > Ævar Arnfjörð Bjarmason writes: >> > >> >> +static int set_ident_internal(const char *var, const char *value, >> >> +

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-05 Thread Junio C Hamano
William Hubbs writes: > I attempted to save your patches to apply them, but didn't have any luck I'll push a topic branch (not merged to any of the integration branches) ab/author-committer-ident-config later today at the https://github.com/gitster/git repository. > Also, according to Junio's r

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-05 Thread William Hubbs
On Tue, Feb 05, 2019 at 06:15:58PM -0600, William Hubbs wrote: > On Tue, Feb 05, 2019 at 06:04:13PM -0600, William Hubbs wrote: > > On Tue, Feb 05, 2019 at 10:14:37PM +0100, Ævar Arnfjörð Bjarmason wrote: > > > > > > On Tue, Feb 05 2019, Junio C Hamano wrote: > > > > > > > Ævar Arnfjörð Bjarmason

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-05 Thread William Hubbs
On Tue, Feb 05, 2019 at 06:04:13PM -0600, William Hubbs wrote: > On Tue, Feb 05, 2019 at 10:14:37PM +0100, Ævar Arnfjörð Bjarmason wrote: > > > > On Tue, Feb 05 2019, Junio C Hamano wrote: > > > > > Ævar Arnfjörð Bjarmason writes: > > > > > >> +static int set_ident_internal(const char *var, con

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-05 Thread William Hubbs
On Tue, Feb 05, 2019 at 10:14:37PM +0100, Ævar Arnfjörð Bjarmason wrote: > > On Tue, Feb 05 2019, Junio C Hamano wrote: > > > Ævar Arnfjörð Bjarmason writes: > > > >> +static int set_ident_internal(const char *var, const char *value, > >> + struct strbuf *sb, const int flag

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-05 Thread Ævar Arnfjörð Bjarmason
On Tue, Feb 05 2019, Junio C Hamano wrote: > Ævar Arnfjörð Bjarmason writes: > >> +static int set_ident_internal(const char *var, const char *value, >> +struct strbuf *sb, const int flag) >> +{ >> +if (!value) >> +return config_error_nonbool(var); >> +

Re: [PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-05 Thread Junio C Hamano
Ævar Arnfjörð Bjarmason writes: > +static int set_ident_internal(const char *var, const char *value, > + struct strbuf *sb, const int flag) > +{ > + if (!value) > + return config_error_nonbool(var); > + strbuf_reset(sb); > + strbuf_addstr(sb, value

[PATCH v6 2/2] config: allow giving separate author and committer idents

2019-02-05 Thread Ævar Arnfjörð Bjarmason
From: William Hubbs The author.email, author.name, committer.email and committer.name settings are analogous to the GIT_AUTHOR_* and GIT_COMMITTER_* environment variables, but for the git config system. This allows them to be set separately for each repository. Git supports setting different aut