* The current implementation of the calendar heatmap by author
contains multidimensional arrays. This works with newer versions
of awk, but can cause issues with systems that use an older variant
which cannot easily handle these calculations. macOS is especially
impacted by this.
By flattening the arrays from a multidimensional array to a single
dimensional array, we can maintain greater compatibility across awk
variants without requiring the user to install additional versions
of awk.
Addresses issue #194
The default until-date used `date` with the system's default locale
as `date` produces localized output by default.
However, `date -d` cannot parse this localized output
but requires a locale independent format:
https://www.gnu.org/software/coreutils/manual/html_node/Options-for-date.html#index-_002dd-19
This sets the locale to a format parsable by `date` as in the article.
* commitsByYear() previously could only support Default-style
dates for git log. However, a user can use a variety of different
date formats such as relative, default, iso, rfc, short, and raw.
This change modifies commitsByYear() to handle multiple different
date strings
Fixes#172
* Indicate how we're sorting new contributors
* Don't fork for `date` checks
* Include reference in the manpage
Signed-off-by: Ben Cotton <bcotton@funnelfiasco.com>
This reports generates a list of all contributors whose first commit was
after a specified date.
Fixes#169
Signed-off-by: Ben Cotton <bcotton@funnelfiasco.com>
* Added additional information to better explain how to use this
on macOS.
* Updated some of the deps used
* Minor adjustments in the README.md
Addresses Issue #166
* Users on macOS and other older distributions of Linux and Unix
cannot fully utilize this application as a handful of date/time
strings in here are specific to the GNU utility found on most
modern version of Linux.
Until every date/time case is handled between the BSD version of
date and the GNU version of date, let's error out akin to how we
do it if the user doesn't have every utility installed to run
this script.
Users can get around this by using package managers on macOS such
as homebrew, macports, etc and making sure that 'date' points to
the GNU version of date instead of the BSD version. Linux and
Unix users can get around this by installing the GNU version of
date, as well.
* Removed checking OSTYPE in the format_date() function as checking
if someone is on a machine that identifies as Darwin is not enough
to handle other edge cases where an older version of BSD date
might be present on the system.
* Added the ability to see git stats both per weekday, as well as
by author per weekday. It should respect all global options.
* Updated tests, README.md, and man page to reflect the new changes