* Verbose as default for commit (optional) @ 2015-04-24 19:18 Eloy Espinaco 2015-04-24 20:03 ` Matthieu Moy 0 siblings, 1 reply; 5+ messages in thread From: Eloy Espinaco @ 2015-04-24 19:18 UTC (permalink / raw) To: git [-- Attachment #1: Type: text/plain, Size: 609 bytes --] Hi, It is my first mail to the list, so "hello world". I wanted to make a feature-request about a config setting to make the commit always verbose. I'm not the only one asking for that, there is an old question in [Stack Overflow][1]. So I was thinking if it was possible to make a pull request for that, so I attach the patch. (I'm proud of it :) ). I wasn't able to make the test for it, but I wanted to ask (before I try) if it makes sense to add this feature (or if it is considered feature bloat). Thanks. --- Eloy Espinaco [1]: http://stackoverflow.com/questions/5875275/git-commit-v-by-default [-- Attachment #2: commit_verbose_config.patch --] [-- Type: text/x-diff, Size: 0 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Verbose as default for commit (optional) 2015-04-24 19:18 Verbose as default for commit (optional) Eloy Espinaco @ 2015-04-24 20:03 ` Matthieu Moy 2015-04-24 23:51 ` Eloy Espinaco 0 siblings, 1 reply; 5+ messages in thread From: Matthieu Moy @ 2015-04-24 20:03 UTC (permalink / raw) To: Eloy Espinaco; +Cc: git Eloy Espinaco <eloyesp@gmail.com> writes: > Hi, > > It is my first mail to the list, so "hello world". Hi, and welcome to the list. > I wanted to make a feature-request about a config setting to make the > commit always verbose. I'm not the only one asking for that, there is an > old question in [Stack Overflow][1]. This seems a reasonable addition. In general, we commonly have config options for commonly used CLI options. > So I was thinking if it was possible to make a pull request for that, so > I attach the patch. (I'm proud of it :) ). Nice try, but the attached file is empty ;-). Actually, as much as possible, avoid sending attachments but prefer inline patches. You'll need a bit of reading to send a proper patch: https://github.com/git/git/blob/master/Documentation/SubmittingPatches -- Matthieu Moy http://www-verimag.imag.fr/~moy/ ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Verbose as default for commit (optional) 2015-04-24 20:03 ` Matthieu Moy @ 2015-04-24 23:51 ` Eloy Espinaco 2015-04-25 1:08 ` Eric Sunshine 0 siblings, 1 reply; 5+ messages in thread From: Eloy Espinaco @ 2015-04-24 23:51 UTC (permalink / raw) To: Matthieu Moy; +Cc: Eloy Espinaco, git Ok, now I found [this thread](http://thread.gmane.org/gmane.comp.version-control.git/251376) that seems abandoned, but implements this config, a --no-verbose that disable it for one-time and the tests, but was not merged (don't know why) This was the patch I've intended to attach: ----------------->8-------------------- Subject: [PATCH] Add commit.verbose config to set default. --- builtin/commit.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/builtin/commit.c b/builtin/commit.c index da79ac4..ad588ff 100644 --- a/builtin/commit.c +++ b/builtin/commit.c @@ -1506,6 +1506,10 @@ static int git_commit_config(const char *k, const char *v, void *cb) sign_commit = git_config_bool(k, v) ? "" : NULL; return 0; } + if (!strcmp(k, "commit.verbose")) { + verbose = git_config_bool(k, v); + return 0; + } status = git_gpg_config(k, v, NULL); if (status) -- 2.1.4 En Fri, Apr 24, 2015 at 10:03:14PM +0200, Matthieu Moy escribió: > Eloy Espinaco <eloyesp@gmail.com> writes: > > > Hi, > > > > It is my first mail to the list, so "hello world". > > Hi, and welcome to the list. > > > I wanted to make a feature-request about a config setting to make the > > commit always verbose. I'm not the only one asking for that, there is an > > old question in [Stack Overflow][1]. > > This seems a reasonable addition. In general, we commonly have config > options for commonly used CLI options. > > > So I was thinking if it was possible to make a pull request for that, so > > I attach the patch. (I'm proud of it :) ). > > Nice try, but the attached file is empty ;-). Actually, as much as > possible, avoid sending attachments but prefer inline patches. > > You'll need a bit of reading to send a proper patch: > > https://github.com/git/git/blob/master/Documentation/SubmittingPatches > > -- > Matthieu Moy > http://www-verimag.imag.fr/~moy/ --- Eloy Espinaco ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: Verbose as default for commit (optional) 2015-04-24 23:51 ` Eloy Espinaco @ 2015-04-25 1:08 ` Eric Sunshine 2015-04-25 4:33 ` Junio C Hamano 0 siblings, 1 reply; 5+ messages in thread From: Eric Sunshine @ 2015-04-25 1:08 UTC (permalink / raw) To: Eloy Espinaco; +Cc: Matthieu Moy, Git List On Fri, Apr 24, 2015 at 7:51 PM, Eloy Espinaco <eloyesp@gmail.com> wrote: > Ok, now I found [this > thread](http://thread.gmane.org/gmane.comp.version-control.git/251376) > that seems abandoned, but implements this config, a --no-verbose that > disable it for one-time and the tests, but was not merged (don't know > why) I recall reviewing Caleb's patch series and making a number of suggestions for improvement. v6 was the last version he posted[1], and it seems that he intended to post v7 but never got around to it. Apparently, Torstein Hegge asked in February 2015 about picking up where Caleb left off, but nothing has materialized. You are welcome to revive the series by taking reviewer comments into account and submitting v7 (and beyond if necessary). Be sure to keep Caleb's authorship and sign-off intact, and add your own sign-off following his. If you make changes to his patches, briefly describe your changes in a bracketed comment in the commit message, starting with your initials, like this: [ee: changed blah to bleh]. [1]: http://thread.gmane.org/gmane.comp.version-control.git/251943/focus=264608 ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Verbose as default for commit (optional) 2015-04-25 1:08 ` Eric Sunshine @ 2015-04-25 4:33 ` Junio C Hamano 0 siblings, 0 replies; 5+ messages in thread From: Junio C Hamano @ 2015-04-25 4:33 UTC (permalink / raw) To: Eric Sunshine; +Cc: Eloy Espinaco, Matthieu Moy, Git List Eric Sunshine <sunshine@sunshineco.com> writes: > On Fri, Apr 24, 2015 at 7:51 PM, Eloy Espinaco <eloyesp@gmail.com> wrote: >> Ok, now I found [this >> thread](http://thread.gmane.org/gmane.comp.version-control.git/251376) >> that seems abandoned, but implements this config, a --no-verbose that >> disable it for one-time and the tests, but was not merged (don't know >> why) > > I recall reviewing Caleb's patch series and making a number of > suggestions for improvement. v6 was the last version he posted[1], and > it seems that he intended to post v7 but never got around to it. > Apparently, Torstein Hegge asked in February 2015 about picking up > where Caleb left off, but nothing has materialized. > > You are welcome to revive the series by taking reviewer comments into > account and submitting v7 (and beyond if necessary). Be sure to keep > Caleb's authorship and sign-off intact, and add your own sign-off > following his. If you make changes to his patches, briefly describe > your changes in a bracketed comment in the commit message, starting > with your initials, like this: [ee: changed blah to bleh]. > > [1]: http://thread.gmane.org/gmane.comp.version-control.git/251943/focus=264608 Also, the world order has changed recently, if I am not mistaken. Back when Caleb's series was done, there were only two choices (i.e. are we verbose, or not verbose?) Now "commit" and "status" can take three choices, so commit.verbose boolean would not cut it. Should the configuration variable be commit.verbose and only affect "commit" and not "status", or should both of these commands pay attention to the single variable and behave the same way? I offhand do not have a strong opinion on these questions, but whoever is doing a proposal must think about it and justify the decision. Thanks. ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-04-25 4:33 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-04-24 19:18 Verbose as default for commit (optional) Eloy Espinaco 2015-04-24 20:03 ` Matthieu Moy 2015-04-24 23:51 ` Eloy Espinaco 2015-04-25 1:08 ` Eric Sunshine 2015-04-25 4:33 ` Junio C Hamano
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.