Commit graph

6 commits

Author SHA1 Message Date
Joshua de Guzman e9f085f20e Add git stats by branch to the options and update unit test 2019-05-10 01:08:53 +08:00
Tom Ice 2cc5cae1a8 Changed non-interactive args and fixed main loop
* The previous commands were Lower CamelCase style and had no equivalent
  short options. If you wanted to see the branch tree via non-interactive
  mode, you always needed to supply "branchTree" as the passing argument to
  the git-quick-stats script.

  This commit changes the argument style to be more akin to the POSIX and GNU
  styles of arguments commonly seen in many other applications. As of this
  commit, there is no compatibility with legacy commands, so those who have
  been using the old commands will unfortunately need to get familiar with the
  new ones. All documentation and tests have been updated accordingly to
  reflect the new changes.

* The main interactive loop contained a non-variable constant that was only
  getting parsed correctly due to legacy fallback behavior. This commit fixes
  the main loop and cleans up the formatting a little bit.

* Added -r to more areas where read reads in a variable to help prevent
  it from mangling backslashes.

* Changed everything to use bash's built-in [[ notation and did some minor
  formatting changes to reduce the LOC.

* Removed some unnecessary echo statements and did some other minor cleanup.
2019-01-10 20:47:40 -05:00
Lukas Mestan d6c1d1e4fd
verbose tests 2017-04-02 17:02:56 +02:00
Lukáš Mešťan 515fdb3b08 fix invalid argument test 2017-03-28 11:46:40 +02:00
Lukas Mestan 5494388655
fix exit code 2017-03-18 14:04:03 +01:00
Lukas Mestan 8d209e371f
travisci 2017-03-18 13:59:30 +01:00