Comments (7)
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.
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.
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.
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.
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.
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.
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)
- [Feature Request] Allow _GIT_* variables to be passed as command-line args HOT 1
- Document the Default _GIT_LIMIT value
- Aggregate results based on email instead of name HOT 1
- Ignore Certain Authors HOT 1
- Pathspec for allowlist HOT 1
- [Feature request] Line changes per hour/day/month/etc.
- date does not have a '-j' in ubuntu rather than free BSD
- Count lines added deleted from Merge Commit HOT 1
- Feature Request: Add a file filter HOT 1
- 2.5.1 broken on macos HOT 4
- Broken "git commits by timezone" HOT 2
- Single stats for the same author with multiple username and/or email HOT 2
- Weird output when running none interactive mode
- Wrong output when using Changelogs by author
- test suite doesn't work when running from tarball release
- List changelogs is broken in version 2.5.4 on macos
- Broken on MacOS Sonoma 14.1.1 HOT 9
- Help page does not show when not in git repo
- [Feature request] Add a report of new contributors HOT 1
- [Feature request] New contributors since a tag
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-quick-stats.