Skip to content

Commit 8c0c5eb

Browse files
committed
Resurrect man page. Fix release script.
1 parent 58f3fda commit 8c0c5eb

2 files changed

Lines changed: 61 additions & 5 deletions

File tree

man/git-coauthor.1

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
.TH GIT\-COAUTHOR 1 2024-02-14 5.2.0 Git\ Manual
2+
.SH NAME
3+
\fBgit\-coauthor\fR \- List, add or delete Git coauthors
4+
.SH SYNOPSIS
5+
\fBgit coauthor\fR [-d] [\fIalias \.\.\.\fR]
6+
.SH DESCRIPTION
7+
Manage coauthors on the HEAD commit using configured aliases.
8+
.SH OPTIONS
9+
.TP
10+
\fB\-d, \-\-delete\fR
11+
Delete coauthors\.
12+
.TP
13+
\fB\-h, \-\-help\fR
14+
Print help\.
15+
.TP
16+
\fB\-v\, \-\-version\fR
17+
Print the version\.
18+
.SH CONFIGURATION
19+
Add a coauthor to the Git configuration:
20+
.PP
21+
.RS 4
22+
.nf
23+
git config --add coauthor.foo 'Foo <foo@foo.com>'
24+
.fi
25+
.RE
26+
.PP
27+
Remove a coauthor from the Git configuration:
28+
.PP
29+
.RS 4
30+
.nf
31+
git config --unset coauthor.foo
32+
.fi
33+
.RE
34+
.SH EXAMPLES
35+
List coauthors on the HEAD commit:
36+
.PP
37+
.RS 4
38+
git coauthor
39+
.RE
40+
.PP
41+
Add coauthors to the HEAD commit:
42+
.PP
43+
.RS 4
44+
git coauthor foo bar
45+
.RE
46+
.PP
47+
Delete coauthors from the HEAD commit:
48+
.PP
49+
.RS 4
50+
git coauthor -d foo bar
51+
.RE
52+
.PP
53+
Delete all coauthors from the HEAD commit:
54+
.PP
55+
.RS 4
56+
git coauthor -d
57+
.RE

script/release.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,23 @@ arm64_sonoma_file="git-coauthor-$version.arm64_sonoma.bottle.1.tar.gz"
3838

3939
release_file="git-coauthor-$version.tar.gz"
4040

41-
echo "Create $ventura_file"
4241
rm -rf git-coauthor
4342
mkdir -p "git-coauthor/$version/bin"
4443
mkdir -p "git-coauthor/$version/share/man/man1"
44+
45+
echo "Create $ventura_file"
4546
chmod +x git-coauthor-macos-13-x86_64-apple-darwin
4647
mv git-coauthor-macos-13-x86_64-apple-darwin "git-coauthor/$version/bin/git-coauthor"
4748
cp man/git-coauthor.1 "git-coauthor/$version/share/man/man1/"
4849
tar -czf "$ventura_file" git-coauthor
4950

5051
echo "Create $arm64_sonoma_file"
51-
rm -rf git-coauthor
52-
mkdir -p "git-coauthor/$version/bin"
53-
mkdir -p "git-coauthor/$version/share/man/man1"
5452
chmod +x git-coauthor-macos-14-aarch64-apple-darwin
5553
mv git-coauthor-macos-14-aarch64-apple-darwin "git-coauthor/$version/bin/git-coauthor"
56-
mv man/git-coauthor.1 "git-coauthor/$version/share/man/man1/"
5754
tar -czf "$arm64_sonoma_file" git-coauthor
5855

56+
rm -rf git-coauthor
57+
5958
# A bit of cheating
6059
echo "Create $arm64_monterey_file"
6160
cp "$arm64_sonoma_file" "$arm64_monterey_file"

0 commit comments

Comments
 (0)