Skip to main content
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

Examples:

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):
Use --no-limit to remove the 200-file cap for large directories.

More Examples

Show the top 10 contributors:
Analyze a specific directory with no file cap:
  1. Repo mode (gx who): Runs git shortlog -sne HEAD to gather contributors on the current branch
  2. File mode (gx who <file>): Runs git blame and aggregates lines per author, computing percentages and last edit timestamps
  3. Directory mode (gx who <dir>): Runs git blame concurrently across files (8 workers, capped at 200 files unless --no-limit is set), then aggregates lines, percentages, and file counts per author
  4. Results are sorted by commit count (repo mode) or line count (file/directory mode) descending