diff options
| author | Jeff King <peff@peff.net> | 2022-10-24 14:55:30 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-10-24 14:48:05 -0700 |
| commit | 251554c26931bec94e86d0e5740084d6116dd263 (patch) | |
| tree | e5ad2e9cf3df611113da56a42287e4fd8a7075fe /commit.c | |
| parent | The fourth batch (diff) | |
| download | git-251554c26931bec94e86d0e5740084d6116dd263.tar.gz git-251554c26931bec94e86d0e5740084d6116dd263.zip | |
shortlog: accept `--date`-related options
Prepare for a future patch which will introduce arbitrary pretty formats
via the `--group` argument.
To allow additional customizability (for example, to support something
like `git shortlog -s --group='%aD' --date='format:%Y-%m' ...` (which
groups commits by the datestring 'YYYY-mm' according to author date), we
must store off the `--date` parsed from calling `parse_revision_opt()`.
Note that this also affects custom output `--format` strings in `git
shortlog`. Though this is a behavior change, this is arguably fixing a
long-standing bug (ie., that `--format` strings are not affected by
`--date` specifiers as they should be).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
