Skip to content

Commit 866ef22

Browse files
authored
Merge pull request #100 from casperdcl/devel
next release v2.1.0
2 parents f736731 + 108af14 commit 866ef22

File tree

6 files changed

+69
-91
lines changed

6 files changed

+69
-91
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
include:
1515
- {os: macos, python: 3.12}
1616
- {os: windows, python: 3.12}
17-
runs-on: ${{ matrix.os }}-latest
17+
runs-on: ${{ matrix.os }}-${{ matrix.python == 3.7 && '22.04' || 'latest' }}
1818
defaults: {run: {shell: bash}}
1919
steps:
2020
- uses: actions/checkout@v4

.meta/.git-fame.1.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
% GIT-FAME(1) git-fame User Manuals
2-
% Casper da Costa-Luis <https://github.com/casperdcl>
2+
% Casper da Costa-Luis (https://github.com/casperdcl)
33
% 2016-2023
44

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

1313
# DESCRIPTION
1414

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

1717
Probably not necessary on UNIX systems:
1818

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ repos:
5252
- flake8-pyproject
5353
- flake8-string-format
5454
- repo: https://github.com/google/yapf
55-
rev: v0.40.2
55+
rev: v0.43.0
5656
hooks:
5757
- id: yapf
5858
args: [-i]
5959
additional_dependencies: [toml]
6060
- repo: https://github.com/PyCQA/isort
61-
rev: 5.13.2
61+
rev: 6.0.0
6262
hooks:
6363
- id: isort

README.rst

+4-3
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,9 @@ Documentation
194194
In no-regex mode, may be a comma-separated list.
195195
Escape (\,) for a literal comma (may require \\, in shell).
196196
--incl=<f> Included files [default: .*]. See `--excl` for format.
197-
--since=<date> Date from which to check. Can be absoulte (eg: 1970-01-31)
197+
--since=<date> Date from which to check. Can be absolute (eg: 1970-01-31)
198198
or relative to now (eg: 3.weeks).
199+
--until=<date> Date to which to check. See `--since` for format.
199200
--cost=<method> Include time cost in person-months (COCOMO) or
200201
person-hours (based on commit times).
201202
Methods: month(s)|cocomo|hour(s)|commit(s).
@@ -375,5 +376,5 @@ We are grateful for all |GitHub-Contributions|.
375376
:target: https://raw.githubusercontent.com/casperdcl/git-fame/main/LICENCE
376377
.. |DOI-URI| image:: https://img.shields.io/badge/DOI-10.5281/zenodo.2544975-blue.svg?color=purple&logo=ORCID
377378
:target: https://doi.org/10.5281/zenodo.2544975
378-
.. |README-Hits| image:: https://caspersci.uk.to/cgi-bin/hits.cgi?q=git-fame&style=social&r=https://github.com/casperdcl/git-fame
379-
:target: https://caspersci.uk.to/cgi-bin/hits.cgi?q=git-fame&a=plot&r=https://github.com/casperdcl/git-fame&style=social
379+
.. |README-Hits| image:: https://cgi.cdcl.ml/hits?q=git-fame&style=social&r=https://github.com/casperdcl/git-fame
380+
:target: https://cgi.cdcl.ml/hits?q=git-fame&a=plot&r=https://github.com/casperdcl/git-fame&style=social

gitfame/_gitfame.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
In no-regex mode, may be a comma-separated list.
2020
Escape (\,) for a literal comma (may require \\, in shell).
2121
--incl=<f> Included files [default: .*]. See `--excl` for format.
22-
--since=<date> Date from which to check. Can be absoulte (eg: 1970-01-31)
23-
or relative to now (eg: 3.weeks).
24-
--until=<date> Date to which to check. Can be absoulte (eg: 1970-01-31)
22+
--since=<date> Date from which to check. Can be absolute (eg: 1970-01-31)
2523
or relative to now (eg: 3.weeks).
24+
--until=<date> Date to which to check. See `--since` for format.
2625
--cost=<method> Include time cost in person-months (COCOMO) or
2726
person-hours (based on commit times).
2827
Methods: month(s)|cocomo|hour(s)|commit(s).

gitfame/git-fame.1

+58-80
Original file line numberDiff line numberDiff line change
@@ -1,146 +1,124 @@
1-
.\" Automatically generated by Pandoc 2.19.2
1+
.\" Automatically generated by Pandoc 3.3
22
.\"
3-
.\" Define V font for inline verbatim, using C font in formats
4-
.\" that render this, and otherwise B font.
5-
.ie "\f[CB]x\f[]"x" \{\
6-
. ftr V B
7-
. ftr VI BI
8-
. ftr VB B
9-
. ftr VBI BI
10-
.\}
11-
.el \{\
12-
. ftr V CR
13-
. ftr VI CI
14-
. ftr VB CB
15-
. ftr VBI CBI
16-
.\}
17-
.TH "GIT-FAME" "1" "2016-2023" "git-fame User Manuals" ""
18-
.hy
3+
.TH "GIT\-FAME" "1" "2016\-2023" "git\-fame User Manuals"
194
.SH NAME
20-
.PP
21-
git-fame - Pretty-print \f[V]git\f[R] repository collaborators sorted by
22-
contributions.
5+
git\-fame \- Pretty\-print \f[CR]git\f[R] repository collaborators
6+
sorted by contributions.
237
.SH SYNOPSIS
24-
.PP
25-
git-fame [--help | \f[I]options\f[R]] [<\f[I]gitdir\f[R]>\&...]
8+
git\-fame [\-\-help | \f[I]options\f[R]] [<\f[I]gitdir\f[R]>\&...]
269
.SH DESCRIPTION
27-
.PP
28-
See <https://github.com/casperdcl/git-fame>.
10+
See https://github.com/casperdcl/git\-fame.
2911
.PP
3012
Probably not necessary on UNIX systems:
3113
.IP
32-
.nf
33-
\f[C]
34-
git config --global alias.fame \[dq]!python -m gitfame\[dq]
35-
\f[R]
36-
.fi
14+
.EX
15+
git config \-\-global alias.fame \[dq]!python \-m gitfame\[dq]
16+
.EE
3717
.PP
3818
For example, to print statistics regarding all source files in a
39-
C++/CUDA repository (\f[V]*.c/h/t(pp), *.cu(h)\f[R]), carefully handling
40-
whitespace and line copies:
19+
C++/CUDA repository (\f[CR]*.c/h/t(pp), *.cu(h)\f[R]), carefully
20+
handling whitespace and line copies:
4121
.IP
42-
.nf
43-
\f[C]
44-
git fame --incl \[aq]\[rs].[cht][puh]{0,2}$\[aq] -twMC
45-
\f[R]
46-
.fi
22+
.EX
23+
git fame \-\-incl \[aq]\[rs].[cht][puh]{0,2}$\[aq] \-twMC
24+
.EE
4725
.SH OPTIONS
4826
.TP
4927
<gitdir>
5028
Git directory [default: ./].
5129
May be specified multiple times to aggregate across multiple
5230
repositories.
5331
.TP
54-
-h, --help
32+
\-h, \-\-help
5533
Print this help and exit.
5634
.TP
57-
-v, --version
35+
\-v, \-\-version
5836
Print module version and exit.
5937
.TP
60-
--branch=\f[I]b\f[R]
38+
\-\-branch=\f[I]b\f[R]
6139
Branch or tag [default: HEAD] up to which to check.
6240
.TP
63-
--sort=\f[I]key\f[R]
41+
\-\-sort=\f[I]key\f[R]
6442
[default: loc]|commits|files|hours|months.
6543
.TP
66-
--loc=\f[I]type\f[R]
67-
surv(iving)|ins(ertions)|del(etions) What \f[V]loc\f[R] represents.
44+
\-\-loc=\f[I]type\f[R]
45+
surv(iving)|ins(ertions)|del(etions) What \f[CR]loc\f[R] represents.
6846
Use `ins,del' to count both.
69-
defaults to `surviving' unless \f[V]--cost\f[R] is specified.
47+
defaults to `surviving' unless \f[CR]\-\-cost\f[R] is specified.
7048
.TP
71-
--excl=\f[I]f\f[R]
49+
\-\-excl=\f[I]f\f[R]
7250
Excluded files (default: None).
73-
In no-regex mode, may be a comma-separated list.
51+
In no\-regex mode, may be a comma\-separated list.
7452
Escape (\[rs],) for a literal comma (may require \[rs]\[rs], in shell).
7553
.TP
76-
--incl=\f[I]f\f[R]
54+
\-\-incl=\f[I]f\f[R]
7755
Included files [default: .*].
78-
See \f[V]--excl\f[R] for format.
56+
See \f[CR]\-\-excl\f[R] for format.
7957
.TP
80-
--since=\f[I]date\f[R]
58+
\-\-since=\f[I]date\f[R]
8159
Date from which to check.
82-
Can be absoulte (eg: 1970-01-31) or relative to now (eg: 3.weeks).
60+
Can be absolute (eg: 1970\-01\-31) or relative to now (eg: 3.weeks).
8361
.TP
84-
--until=\f[I]date\f[R]
62+
\-\-until=\f[I]date\f[R]
8563
Date to which to check.
86-
Can be absoulte (eg: 1970-01-31) or relative to now (eg: 3.weeks).
64+
See \f[CR]\-\-since\f[R] for format.
8765
.TP
88-
--cost=\f[I]method\f[R]
89-
Include time cost in person-months (COCOMO) or person-hours (based on
66+
\-\-cost=\f[I]method\f[R]
67+
Include time cost in person\-months (COCOMO) or person\-hours (based on
9068
commit times).
9169
Methods: month(s)|cocomo|hour(s)|commit(s).
92-
May be multiple comma-separated values.
93-
Alters \f[V]--loc\f[R] default to imply `ins' (COCOMO) or `ins,del'
70+
May be multiple comma\-separated values.
71+
Alters \f[CR]\-\-loc\f[R] default to imply `ins' (COCOMO) or `ins,del'
9472
(hours).
9573
.TP
96-
-R, --recurse
74+
\-R, \-\-recurse
9775
Recursively find repositories & submodules within .
9876
.TP
99-
-n, --no-regex
100-
Assume are comma-separated exact matches rather than regular expressions
101-
[default: False].
77+
\-n, \-\-no\-regex
78+
Assume are comma\-separated exact matches rather than regular
79+
expressions [default: False].
10280
NB: if regex is enabled `,' is equivalent to `|'.
10381
.TP
104-
-s, --silent-progress
105-
Suppress \f[V]tqdm\f[R] [default: False].
82+
\-s, \-\-silent\-progress
83+
Suppress \f[CR]tqdm\f[R] [default: False].
10684
.TP
107-
--warn-binary
85+
\-\-warn\-binary
10886
Don\[cq]t silently skip files which appear to be binary data [default:
10987
False].
11088
.TP
111-
-e, --show-email
89+
\-e, \-\-show\-email
11290
Show author email instead of name [default: False].
11391
.TP
114-
--enum
92+
\-\-enum
11593
Show row numbers [default: False].
11694
.TP
117-
-t, --bytype
95+
\-t, \-\-bytype
11896
Show stats per file extension [default: False].
11997
.TP
120-
-w, --ignore-whitespace
98+
\-w, \-\-ignore\-whitespace
12199
Ignore whitespace when comparing the parent\[cq]s version and the
122100
child\[cq]s to find where the lines came from [default: False].
123-
-M Detect intra-file line moves and copies [default: False].
124-
-C Detect inter-file line moves and copies [default: False].
101+
\-M Detect intra\-file line moves and copies [default: False].
102+
\-C Detect inter\-file line moves and copies [default: False].
125103
.TP
126-
--ignore-rev=\f[I]rev\f[R]
104+
\-\-ignore\-rev=\f[I]rev\f[R]
127105
Ignore changes made by the given revision (requires
128-
\f[V]--loc=surviving\f[R]).
106+
\f[CR]\-\-loc=surviving\f[R]).
129107
.TP
130-
--ignore-revs-file=\f[I]f\f[R]
108+
\-\-ignore\-revs\-file=\f[I]f\f[R]
131109
Ignore revisions listed in the given file (requires
132-
\f[V]--loc=surviving\f[R]).
110+
\f[CR]\-\-loc=surviving\f[R]).
133111
.TP
134-
--format=\f[I]format\f[R]
112+
\-\-format=\f[I]format\f[R]
135113
Table format [default: pipe]|md|markdown|yaml|yml|json|csv|tsv|tabulate.
136-
May require \f[V]git-fame[<format>]\f[R],
137-
e.g.\ \f[V]pip install git-fame[yaml]\f[R].
138-
Any \f[V]tabulate.tabulate_formats\f[R] is also accepted.
114+
May require \f[CR]git\-fame[<format>]\f[R],
115+
e.g.\ \f[CR]pip install git\-fame[yaml]\f[R].
116+
Any \f[CR]tabulate.tabulate_formats\f[R] is also accepted.
139117
.TP
140-
--manpath=\f[I]path\f[R]
141-
Directory in which to install git-fame man pages.
118+
\-\-manpath=\f[I]path\f[R]
119+
Directory in which to install git\-fame man pages.
142120
.TP
143-
--log=\f[I]lvl\f[R]
121+
\-\-log=\f[I]lvl\f[R]
144122
FATAL|CRITICAL|ERROR|WARN(ING)|[default: INFO]|DEBUG|NOTSET.
145123
.SH AUTHORS
146-
Casper da Costa-Luis <https://github.com/casperdcl>.
124+
Casper da Costa\-Luis (https://github.com/casperdcl).

0 commit comments

Comments
 (0)