Giter Site home page Giter Site logo

Comments (7)

quique avatar quique commented on July 20, 2024

It works fine on my system (Debian based).

What do you get from this command?
git shortlog --no-merges -n -s

from git-quick-stats.

jacob-swanson avatar jacob-swanson commented on July 20, 2024
    75  Lukas Mestan
     2  Joopmicroop
     1  Andrew Huss
     1  Brian Kroth
     1  Dustin Blomquist
     1  Linell
     1  Melih Değiş
     1  Nicholas Skinsacos
     1  Raimon Grau

I am using zsh, but I tried it in bash and got the same result.

from git-quick-stats.

jacob-swanson avatar jacob-swanson commented on July 20, 2024

Looks like column is messing it up.

➜  git-quick-stats git:(master) ✗ git shortlog --no-merges -n -s | sort -nr | awk '
{ args[NR] = $0; sum += $0 }
    END {
      for (i = 1; i <= NR; ++i) {
        printf "%s,%2.1f%%\n", args[i], 100 * args[i] / sum
      }
    }'               
    75	Lukas Mestan,89.3%
     2	Joopmicroop,2.4%
     1	Raimon Grau,1.2%
     1	Nicholas Skinsacos,1.2%
     1	Melih Değiş,1.2%
     1	Linell,1.2%
     1	Dustin Blomquist,1.2%
     1	Brian Kroth,1.2%
     1	Andrew Huss,1.2%

➜  git-quick-stats git:(master) ✗ git shortlog --no-merges -n -s | sort -nr | awk '
{ args[NR] = $0; sum += $0 }
    END {
      for (i = 1; i <= NR; ++i) {
        printf "%s,%2.1f%%\n", args[i], 100 * args[i] / sum
      }
    }' | column -t -s,
75\x09Lukas Mestan       89.3%
2\x09Joopmicroop         2.4%
1\x09Raimon Grau         1.2%
1\x09Nicholas Skinsacos  1.2%
1\x09Melih Değiş         1.2%
1\x09Linell              1.2%
1\x09Dustin Blomquist    1.2%
1\x09Brian Kroth         1.2%
1\x09Andrew Huss         1.2%

from git-quick-stats.

quique avatar quique commented on July 20, 2024

I tried it on a fresh install of Fedora 26, and it worked fine.

I believe this is not a bug but a configuration issue on your system.
What's the output of the locale command?

from git-quick-stats.

jacob-swanson avatar jacob-swanson commented on July 20, 2024

I don't think I have anything strange going on besides the fact that I'm using zsh and oh-my-zsh. Besides, it happens when I use bash too.

➜  ~ locale
LANG=en_US.UTF-8
LC_CTYPE=en_US.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

from git-quick-stats.

quique avatar quique commented on July 20, 2024

I mean it doesn't seem to be a bug in git-quick-stats.

Does something minimal such as echo -e "One\tTwo,Three" | column -t -s, work?
If it doesn't, the problem is either in your system or in the column(1) util.

from git-quick-stats.

jacob-swanson avatar jacob-swanson commented on July 20, 2024

Yeah, I agree it's not an issue with git-quick-stats. Thanks for your help though!

➜  ~ echo -e "One\tTwo,Three" | column -t -s,
One\x09Two  Three

from git-quick-stats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.