Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
- fixes #93
- follow-up to #92
  • Loading branch information
casperdcl committed Oct 6, 2024
1 parent c482316 commit 757f070
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 84 deletions.
4 changes: 2 additions & 2 deletions .meta/.git-fame.1.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
% GIT-FAME(1) git-fame User Manuals
% Casper da Costa-Luis <https://github.com/casperdcl>
% Casper da Costa-Luis (https://github.com/casperdcl)
% 2016-2023

# NAME
Expand All @@ -12,7 +12,7 @@ git-fame [\--help | *options*] [<*gitdir*>...]

# DESCRIPTION

See <https://github.com/casperdcl/git-fame>.
See https://github.com/casperdcl/git-fame.

Probably not necessary on UNIX systems:

Expand Down
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ Documentation
--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).
--until=<date> Date to which to check. See `--since` for format.
--cost=<method> Include time cost in person-months (COCOMO) or
person-hours (based on commit times).
Methods: month(s)|cocomo|hour(s)|commit(s).
Expand Down
3 changes: 1 addition & 2 deletions gitfame/_gitfame.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
--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).
--until=<date> Date to which to check. Can be absoulte (eg: 1970-01-31)
or relative to now (eg: 3.weeks).
--until=<date> Date to which to check. See `--since` for format.
--cost=<method> Include time cost in person-months (COCOMO) or
person-hours (based on commit times).
Methods: month(s)|cocomo|hour(s)|commit(s).
Expand Down
138 changes: 58 additions & 80 deletions gitfame/git-fame.1
Original file line number Diff line number Diff line change
@@ -1,146 +1,124 @@
.\" Automatically generated by Pandoc 2.19.2
.\" Automatically generated by Pandoc 3.3
.\"
.\" Define V font for inline verbatim, using C font in formats
.\" that render this, and otherwise B font.
.ie "\f[CB]x\f[]"x" \{\
. ftr V B
. ftr VI BI
. ftr VB B
. ftr VBI BI
.\}
.el \{\
. ftr V CR
. ftr VI CI
. ftr VB CB
. ftr VBI CBI
.\}
.TH "GIT-FAME" "1" "2016-2023" "git-fame User Manuals" ""
.hy
.TH "GIT\-FAME" "1" "2016\-2023" "git\-fame User Manuals"
.SH NAME
.PP
git-fame - Pretty-print \f[V]git\f[R] repository collaborators sorted by
contributions.
git\-fame \- Pretty\-print \f[CR]git\f[R] repository collaborators
sorted by contributions.
.SH SYNOPSIS
.PP
git-fame [--help | \f[I]options\f[R]] [<\f[I]gitdir\f[R]>\&...]
git\-fame [\-\-help | \f[I]options\f[R]] [<\f[I]gitdir\f[R]>\&...]
.SH DESCRIPTION
.PP
See <https://github.com/casperdcl/git-fame>.
See https://github.com/casperdcl/git\-fame.
.PP
Probably not necessary on UNIX systems:
.IP
.nf
\f[C]
git config --global alias.fame \[dq]!python -m gitfame\[dq]
\f[R]
.fi
.EX
git config \-\-global alias.fame \[dq]!python \-m gitfame\[dq]
.EE
.PP
For example, to print statistics regarding all source files in a
C++/CUDA repository (\f[V]*.c/h/t(pp), *.cu(h)\f[R]), carefully handling
whitespace and line copies:
C++/CUDA repository (\f[CR]*.c/h/t(pp), *.cu(h)\f[R]), carefully
handling whitespace and line copies:
.IP
.nf
\f[C]
git fame --incl \[aq]\[rs].[cht][puh]{0,2}$\[aq] -twMC
\f[R]
.fi
.EX
git fame \-\-incl \[aq]\[rs].[cht][puh]{0,2}$\[aq] \-twMC
.EE
.SH OPTIONS
.TP
<gitdir>
Git directory [default: ./].
May be specified multiple times to aggregate across multiple
repositories.
.TP
-h, --help
\-h, \-\-help
Print this help and exit.
.TP
-v, --version
\-v, \-\-version
Print module version and exit.
.TP
--branch=\f[I]b\f[R]
\-\-branch=\f[I]b\f[R]
Branch or tag [default: HEAD] up to which to check.
.TP
--sort=\f[I]key\f[R]
\-\-sort=\f[I]key\f[R]
[default: loc]|commits|files|hours|months.
.TP
--loc=\f[I]type\f[R]
surv(iving)|ins(ertions)|del(etions) What \f[V]loc\f[R] represents.
\-\-loc=\f[I]type\f[R]
surv(iving)|ins(ertions)|del(etions) What \f[CR]loc\f[R] represents.
Use `ins,del' to count both.
defaults to `surviving' unless \f[V]--cost\f[R] is specified.
defaults to `surviving' unless \f[CR]\-\-cost\f[R] is specified.
.TP
--excl=\f[I]f\f[R]
\-\-excl=\f[I]f\f[R]
Excluded files (default: None).
In no-regex mode, may be a comma-separated list.
In no\-regex mode, may be a comma\-separated list.
Escape (\[rs],) for a literal comma (may require \[rs]\[rs], in shell).
.TP
--incl=\f[I]f\f[R]
\-\-incl=\f[I]f\f[R]
Included files [default: .*].
See \f[V]--excl\f[R] for format.
See \f[CR]\-\-excl\f[R] for format.
.TP
--since=\f[I]date\f[R]
\-\-since=\f[I]date\f[R]
Date from which to check.
Can be absoulte (eg: 1970-01-31) or relative to now (eg: 3.weeks).
Can be absoulte (eg: 1970\-01\-31) or relative to now (eg: 3.weeks).
.TP
--until=\f[I]date\f[R]
\-\-until=\f[I]date\f[R]
Date to which to check.
Can be absoulte (eg: 1970-01-31) or relative to now (eg: 3.weeks).
See \f[CR]\-\-since\f[R] for format.
.TP
--cost=\f[I]method\f[R]
Include time cost in person-months (COCOMO) or person-hours (based on
\-\-cost=\f[I]method\f[R]
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 \f[V]--loc\f[R] default to imply `ins' (COCOMO) or `ins,del'
May be multiple comma\-separated values.
Alters \f[CR]\-\-loc\f[R] default to imply `ins' (COCOMO) or `ins,del'
(hours).
.TP
-R, --recurse
\-R, \-\-recurse
Recursively find repositories & submodules within .
.TP
-n, --no-regex
Assume are comma-separated exact matches rather than regular expressions
[default: False].
\-n, \-\-no\-regex
Assume are comma\-separated exact matches rather than regular
expressions [default: False].
NB: if regex is enabled `,' is equivalent to `|'.
.TP
-s, --silent-progress
Suppress \f[V]tqdm\f[R] [default: False].
\-s, \-\-silent\-progress
Suppress \f[CR]tqdm\f[R] [default: False].
.TP
--warn-binary
\-\-warn\-binary
Don\[cq]t silently skip files which appear to be binary data [default:
False].
.TP
-e, --show-email
\-e, \-\-show\-email
Show author email instead of name [default: False].
.TP
--enum
\-\-enum
Show row numbers [default: False].
.TP
-t, --bytype
\-t, \-\-bytype
Show stats per file extension [default: False].
.TP
-w, --ignore-whitespace
\-w, \-\-ignore\-whitespace
Ignore whitespace when comparing the parent\[cq]s version and the
child\[cq]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].
\-M Detect intra\-file line moves and copies [default: False].
\-C Detect inter\-file line moves and copies [default: False].
.TP
--ignore-rev=\f[I]rev\f[R]
\-\-ignore\-rev=\f[I]rev\f[R]
Ignore changes made by the given revision (requires
\f[V]--loc=surviving\f[R]).
\f[CR]\-\-loc=surviving\f[R]).
.TP
--ignore-revs-file=\f[I]f\f[R]
\-\-ignore\-revs\-file=\f[I]f\f[R]
Ignore revisions listed in the given file (requires
\f[V]--loc=surviving\f[R]).
\f[CR]\-\-loc=surviving\f[R]).
.TP
--format=\f[I]format\f[R]
\-\-format=\f[I]format\f[R]
Table format [default: pipe]|md|markdown|yaml|yml|json|csv|tsv|tabulate.
May require \f[V]git-fame[<format>]\f[R],
e.g.\ \f[V]pip install git-fame[yaml]\f[R].
Any \f[V]tabulate.tabulate_formats\f[R] is also accepted.
May require \f[CR]git\-fame[<format>]\f[R],
e.g.\ \f[CR]pip install git\-fame[yaml]\f[R].
Any \f[CR]tabulate.tabulate_formats\f[R] is also accepted.
.TP
--manpath=\f[I]path\f[R]
Directory in which to install git-fame man pages.
\-\-manpath=\f[I]path\f[R]
Directory in which to install git\-fame man pages.
.TP
--log=\f[I]lvl\f[R]
\-\-log=\f[I]lvl\f[R]
FATAL|CRITICAL|ERROR|WARN(ING)|[default: INFO]|DEBUG|NOTSET.
.SH AUTHORS
Casper da Costa-Luis <https://github.com/casperdcl>.
Casper da Costa\-Luis (https://github.com/casperdcl).

0 comments on commit 757f070

Please sign in to comment.