gx who identifies the top contributors to your repo, file, or directory. The output format varies depending on whether you pass a file, directory, or nothing.
Usage
Flags
Modes
Repo-level: gx who
When run with no arguments, shows contributors by commit count using git shortlog -sne HEAD:
File-level: gx who <file>
When given a file path, shows blame-based line ownership:
Directory-level: gx who <dir>
When given a directory, runs concurrent blame across all files (8 workers, capped at 200 files by default):
--no-limit to remove the 200-file cap for large directories.
More Examples
Show the top 10 contributors:How it works under the hood
How it works under the hood
- Repo mode (
gx who): Runsgit shortlog -sne HEADto gather contributors on the current branch - File mode (
gx who <file>): Runsgit blameand aggregates lines per author, computing percentages and last edit timestamps - Directory mode (
gx who <dir>): Runsgit blameconcurrently across files (8 workers, capped at 200 files unless--no-limitis set), then aggregates lines, percentages, and file counts per author - Results are sorted by commit count (repo mode) or line count (file/directory mode) descending