Skip to content

Conversation

@jbnicolai
Copy link

See #224 for a discussion.

The output from printf is changed from using a set maximum number of whitespace characters to simply outputting: `,'.

This output is then put through column -t -s, to split on the comma separator and lay the fields out in a table.

Previously:

./bin/git-summary  | tail -20
     1  Jesse Sipprell           0.2%
     1  John Hoffmann            0.2%
     1  Konstantin Schukraft     0.2%
     1  Leandro López            0.2%
     1  Maarten Winter           0.2%
     1  Mathieu D. (MatToufoutu)         0.2%
     1  Matt Colyer              0.2%
     1  Michael Komitee          0.2%
     1  Michael Matuzak          0.2%
     1  Moritz Grauel            0.2%
     1  NANRI                    0.2%
     1  Nathan Rajlich           0.2%
     1  Nick Campbell            0.2%
     1  Nick Payne               0.2%
     1  Niklas Fiekas            0.2%
     1  Stephen Mathieson        0.2%
     1  Todd Wolfson             0.2%
     1  Tony                     0.2%
     1  TweeKane                 0.2%

Current:

./bin/git-summary  | tail -20
     1  Jesse Sipprell            0.2%
     1  John Hoffmann             0.2%
     1  Joshua Appelman           0.2%
     1  Konstantin Schukraft      0.2%
     1  Leandro López             0.2%
     1  Maarten Winter            0.2%
     1  Mathieu D. (MatToufoutu)  0.2%
     1  Matt Colyer               0.2%
     1  Michael Komitee           0.2%
     1  Michael Matuzak           0.2%
     1  Moritz Grauel             0.2%
     1  NANRI                     0.2%
     1  Nathan Rajlich            0.2%
     1  Nick Campbell             0.2%
     1  Nick Payne                0.2%
     1  Niklas Fiekas             0.2%
     1  Stephen Mathieson         0.2%
     1  Todd Wolfson              0.2%
     1  Tony                      0.2%

@hemanth
Copy link
Collaborator

hemanth commented Jul 14, 2014

Pipe them all ;) Thanks @jbnicolai

hemanth added a commit that referenced this pull request Jul 14, 2014
Uses column -t to align summary output in a table.
@hemanth hemanth merged commit 95b7c52 into tj:master Jul 14, 2014
jbnicolai pushed a commit to mochajs/mocha that referenced this pull request Jul 14, 2014
Some of the columns in the contributor table were misaligned due to a bug in
git-extras/git-summary, see: tj/git-extras#236
tardypad pushed a commit to tardypad/git-extras that referenced this pull request Jul 13, 2016
Uses column -t to align summary output in a table.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants