GIT-FAME(1)

πŸ“¦ version 2.0.1, in fedora 43, fedora 44

✨ GIT-FAME(1) ✨

okay bestie, welcome to the git-fame manual page, and yes it's literally the main character of contributor stats πŸ’…


🌸 NAME 🌸

git-fame β€” pretty-print git repository collaborators sorted by contributions. that's it. that's the whole vibe. your repo's whole group chat, ranked, looking cute πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

git-fame [--help | options] [<gitdir>...]

πŸŽ€ DESCRIPTION πŸŽ€

go look at <https://github.com/casperdcl/git-fame>. that's the whole source of truth, no cap.

Probably not necessary on UNIX systems:

git config --global alias.fame "!python -m gitfame"

and like, for example, to print statistics regarding all source files in a C++/CUDA repository (*.c/h/t(pp), *.cu(h)), carefully handling whitespace and line copies:

git fame --incl '\.[cht][puh]{0,2}$' -twMC

obsessed with that command actually. -twMC is giving power user energy πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

  • <gitdir> β€” Git directory [default: ./]. may be specified multiple times to aggregate across multiple repositories. yes you can stan several repos at once, she contains multitudes 🫢
  • -h, --help β€” print this help and exit. simple. iconic.
  • -v, --version β€” print module version and exit. no notes.
  • --branch=b β€” branch or tag [default: HEAD] up to which to check.
  • --sort=key β€” [default: loc]|commits|files|hours|months. pick your ranking metric bestie πŸŽ€
  • --loc=type β€” surv(iving)|ins(ertions)|del(etions) β€” what loc actually represents. use ins,del to count both. defaults to surviving unless --cost is specified.
  • --excl=f β€” excluded files (default: None). in no-regex mode, may be a comma-separated list. escape (\,) for a literal comma (may require \\, in shell). the shell is dramatic like that 😭
  • --incl=f β€” included files [default: .*]. see --excl for format.
  • --since=date β€” date from which to check. can be absoulte (eg: 1970-01-31) or relative to now (eg: 3.weeks). time travel but make it git ✨
  • --cost=method β€” include time cost in person-months (COCOMO) or person-hours (based on commit times). Methods: month(s)|cocomo|hour(s)|commit(s). may be multiple comma-separated values. alters --loc default to imply ins (COCOMO) or ins,del (hours). lowkey the glow-up option fr fr
  • -R, --recurse β€” recursively find repositories & submodules within .
  • -n, --no-regex β€” assume are comma-separated exact matches rather than regular expressions [default: False]. NB: if regex is enabled , is equivalent to |.
  • -s, --silent-progress β€” suppress tqdm [default: False]. bye bye progress bar, you were doing amazing sweetie πŸ’œ
  • --warn-binary β€” don't silently skip files which appear to be binary data [default: False]. she will tell you, and honestly? good communication 🌈
  • -e, --show-email β€” show author email instead of name [default: False].
  • --enum β€” show row numbers [default: False].
  • -t, --bytype β€” show stats per file extension [default: False].
  • -w, --ignore-whitespace β€” ignore whitespace when comparing the parent's version and the child's to find where the lines came from [default: False]. -M detect intra-file line moves and copies [default: False]. -C detect inter-file line moves and copies [default: False]. the trio of truth πŸ’…
  • --ignore-rev=rev β€” ignore changes made by the given revision (requires --loc=surviving).
  • --ignore-revs-file=f β€” ignore revisions listed in the given file (requires --loc=surviving).
  • --format=format β€” table format [default: pipe]|md|markdown|yaml|yml|json|csv|tsv|tabulate. may require git-fame[<format>], e.g. pip install git-fame[yaml]. any tabulate.tabulate_formats is also accepted. pick your aesthetic, all of them slay πŸŽ€
  • --manpath=path β€” directory in which to install git-fame man pages.
  • --log=lvl β€” FATAL|CRITICAL|ERROR|WARN(ING)|[default: INFO]|DEBUG|NOTSET.

πŸ’– AUTHORS πŸ’–

Casper da Costa-Luis <https://github.com/casperdcl>. the founder, the icon, the moment πŸ‘‘


real talk bestie: if something here is dangerous, deprecated, or straight-up undefined behaviour, treat it with the respect it deserves. i'm not making up new behaviour for you β€” everything above is exactly what the page says, just with more sparkle πŸ’€βœ¨

that's a wrap! this was the git-fame User Manuals page, git-fame era 2016-2023, and yes it's still called GIT-FAME(1) around here. go rank your contributors, you absolute legend πŸ¦‹πŸŒΈπŸ’…

πŸ“¦ where this page comes from