kowainik / hit-on

:octocat: Kowainik Git Workflow Helper Tool
https://kowainik.github.io/projects/hit-on
Mozilla Public License 2.0
77 stars 13 forks source link

Shorter status signs #149

Closed chshersh closed 4 years ago

chshersh commented 4 years ago

Fix #123 resulted in long status signs which overflow to a new line. Something needs to be done with this.

chshersh commented 4 years ago

I've accidentally discovered an easy solution to this problem. When running git diff command, you can specify a file for which you want to get statistics. So current solution can look like this:

  1. Remove max column size from this command https://github.com/kowainik/hit-on/blob/b71914214e293f0c8b85201cc8d14da578b6ea89/src/Hit/Git/Status.hs#L185
  2. Instead of running two commands, sorting files and trying to combine tables, run the second command for each file individually, get only signs from that command, and then combine results together.