Re: [PATCH 4/4] format-rev: learn --abbrev, --color, and --date
"Kristoffer Haugsbakk" <[email protected]>
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
On Thu, Aug 13, 2026, at 19:24, [email protected] wrote: >[snip] > +static int date_cb(const struct option *option, > + const char *arg, > + int unset) > +{ > + struct rev_info *data = option->value; > + parse_date_format(arg, &data->date_mode); The documentation for this function says that we need to call a release function in case a custom format was used. That is currently missing. > + data->date_mode_explicit = 1; > + BUG_ON_OPT_NEG(unset); > + return 0; > +} > + >[snip]