* When performing actions such as redirecting the stats to a file,
the terminal escape sequences for handling colors gets added
to the top message in the text file. While running commands such
as sed can fix this, it is inconvenient for users wishing to redirect
or pipe the stats in a clean way.
Attempting to use test -t yielded some unexpected results, as well
as extra logic for handling a non-tty case, so for now, we are
simply removing the colors from the message so it defaults to
standard terminal colors and formatting
Fixes#122
* The current default date is set to UNIX Epoch time. However, it seems
some people are possibly having issues with date/time formats within
their OSes. This commit attempts to fix issue #115 when the default
date may be too old and cause no output to show
* There was an issue with quoting in the pathspec variable where
the variable would get mangled when being passed to different
parameters during git operations. This change fixes that.
Fixes#102
* A new feature was implemented to show percentages when displaying
detailed stats (menu options 1 and 2, or options -T and -R).
However, the calculation during "lines changed" may cause an error
within awk stating it cannot divide by zero as there is no check
to see if the divisor is larger than zero.
This commit attempts to fix that issue, albeit admittedly not in
the most elegant way...
Fixes#100
* The JSON output feature was not originally explained well and needed
some additional information on how it worked. Extra info on how to use
this feature, as well as reminding people that this is a beta feature,
was added to help the users when trying out this option
Fixes#96
* If a space existed within _GIT_SINCE, _GIT_UNTIL, or _GIT_PATHSPEC,
the shell would split the variable at the first space it saw because
the variables were not quoted.
If you were to simply quote the variables, then a null variable would
get inserted into git's log, and it would cause an error.
This change adds default values to these variables at all times so
the variables are always assigned to something that git understands.
Fixes#95
* OS X utilizes an older version of GNU Bash. As such, certain features
such as lowercase expansion can fail. This commit removes the Bash 4.0
syntax in favor of a POSIX syntax with awk.
* Users can now switch between allowing merge commits in their stats,
showing only merges in the stats, or ignoring merge commits in
the stats all together.
Showing merges might be good for people who wish to see the entire
history as git shows it by default. For this, setting the new variable
_GIT_MERGE_VIEW to enable will show merge commits in the stats together
with normal commits.
Showing only merges might be useful for people who wish to see how
much of their git history is taken up by merges alone. It can be useful
for re-evaluating a particular workflow. For this, setting the new var
_GIT_MERGE_VIEW to exclusive will show only merge commits in the stats.
The default action is to not display merge commits.
Resolves#88