git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] builtin/log: honor log.decorate

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
May 12, 2017, 22:07 UTC
Message-ID
<20170512220704.txmdk45s66aqhexi@genre.crustytoothpaste.net>
In-Reply-To
<CAMMLpeTYvK+yow8R83Yf-kOFOZngFEfYsoQeXuTOL0tZOE3XTA@mail.gmail.com>
On Fri, May 12, 2017 at 04:03:04PM -0600, Alex Henrie wrote:
Show 25 quoted lines
> > diff --git a/builtin/log.c b/builtin/log.c
> > index b3b10cc1e..304923836 100644
> > --- a/builtin/log.c
> > +++ b/builtin/log.c
> > @@ -34,7 +34,7 @@ static int default_abbrev_commit;
> >  static int default_show_root = 1;
> >  static int default_follow;
> >  static int default_show_signature;
> > -static int decoration_style;
> > +static int decoration_style = -1;
> >  static int decoration_given;
> >  static int use_mailmap_config;
> >  static const char *fmt_patch_subject_prefix = "PATCH";
> > @@ -410,7 +410,7 @@ static int git_log_config(const char *var, const char *value, void *cb)
> >                 if (decoration_style < 0)
> >                         decoration_style = 0; /* maybe warn? */
> >                 return 0;
> > -       } else {
> > +       } else if (decoration_style == -1) {
> >                 decoration_style = auto_decoration_style();
> >         }
> >         if (!strcmp(var, "log.showroot")) {
> 
> Sorry for the mistake. On second thought, I think we should set
> decoration_style = auto_decoration_style() in init_log_defaults.
I can do that.  Patch forthcoming shortly.
-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | https://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: https://keybase.io/bk2204
Previous: Alex HenrieNext: brian m. carlson
Message 3 of 15 in “builtin/log: honor log.decorate”
  1. builtin/log: honor log.decoratebrian m. carlson, May 12, 2017
  2. Alex HenrieMay 12, 2017
  3. brian m. carlsonMay 12, 2017
  4. builtin/log: honor log.decoratebrian m. carlson, May 12, 2017
  5. Alex HenrieMay 12, 2017
  6. Jonathan NiederMay 12, 2017
  7. brian m. carlsonMay 12, 2017
  8. Jonathan NiederMay 12, 2017
  9. Alex HenrieMay 13, 2017
  10. brian m. carlsonMay 13, 2017
  11. brian m. carlsonMay 13, 2017
  12. builtin/log: honor log.decoratebrian m. carlson, May 14, 2017
  13. Junio C HamanoMay 15, 2017
  14. Alex HenrieMay 15, 2017
  15. Jonathan NiederMay 15, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.