Skip to content

Commit 2973ee4

Browse files
committed
Update help.
1 parent 798b8e2 commit 2973ee4

4 files changed

Lines changed: 44 additions & 20 deletions

File tree

.release-notes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
- No changes
1+
- Update help and man page.

man/git-coauthor.1

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
.TH GIT\-COAUTHOR 1 2024-02-29 6.1.0 Git\ Manual
1+
.TH GIT\-COAUTHOR 1 2023-02-29 6.1.0 Git\ Manual
22
.SH NAME
33
\fBgit\-coauthor\fR \- List, add or delete Git coauthors
44
.SH SYNOPSIS
55
\fBgit coauthor\fR [-d] [\fIalias \.\.\.\fR]
66
.SH DESCRIPTION
7-
Manage coauthors on the HEAD commit using configured aliases.
7+
Git coauthor manages "Co-authored-by" lines on the HEAD commit\. Coauthors may be specified as name or email details from the repository's commit history or as aliases configured via Git config\.
88
.SH OPTIONS
99
.TP
1010
\fB\-d, \-\-delete\fR
@@ -16,42 +16,54 @@ Print help\.
1616
\fB\-v\, \-\-version\fR
1717
Print the version\.
1818
.SH CONFIGURATION
19-
Add a coauthor to the Git configuration:
19+
Optionally, coauthor aliases can be added to the Git config:
2020
.PP
2121
.RS 4
2222
.nf
23-
git config --add coauthor.foo 'Foo <foo@foo.com>'
23+
git config --add coauthor\.joe 'Joe Blow <foo@foo\.com>'
2424
.fi
2525
.RE
2626
.PP
27-
Remove a coauthor from the Git configuration:
27+
To remove a coauthor from the Git config:
2828
.PP
2929
.RS 4
3030
.nf
31-
git config --unset coauthor.foo
31+
git config --unset coauthor\.joe
3232
.fi
3333
.RE
3434
.SH EXAMPLES
3535
List coauthors on the HEAD commit:
3636
.PP
3737
.RS 4
38+
.nf
3839
git coauthor
40+
.fi
3941
.RE
4042
.PP
4143
Add coauthors to the HEAD commit:
4244
.PP
4345
.RS 4
44-
git coauthor foo bar
46+
.nf
47+
git coauthor Joe
48+
git coauthor Joe Jim
49+
git coauthor 'Joe Blow' 'Jim Bob'
50+
.fi
4551
.RE
4652
.PP
4753
Delete coauthors from the HEAD commit:
4854
.PP
4955
.RS 4
50-
git coauthor -d foo bar
56+
.nf
57+
git coauthor -d Joe
58+
git coauthor -d Joe Jim
59+
git coauthor -d 'Joe Blow' 'Jim Bob'
60+
.fi
5161
.RE
5262
.PP
5363
Delete all coauthors from the HEAD commit:
5464
.PP
5565
.RS 4
66+
.nf
5667
git coauthor -d
68+
.fi
5769
.RE

script/manpage.sh

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ cat << EOF > man/git-coauthor.1
2121
.SH SYNOPSIS
2222
\fBgit coauthor\fR [-d] [\fIalias \.\.\.\fR]
2323
.SH DESCRIPTION
24-
Manage coauthors on the HEAD commit using configured aliases.
24+
Git coauthor manages "Co-authored-by" lines on the HEAD commit\. Coauthors may be specified as name or email details from the repository's commit history or as aliases configured via Git config\.
2525
.SH OPTIONS
2626
.TP
2727
\fB\-d, \-\-delete\fR
@@ -33,43 +33,55 @@ Print help\.
3333
\fB\-v\, \-\-version\fR
3434
Print the version\.
3535
.SH CONFIGURATION
36-
Add a coauthor to the Git configuration:
36+
Optionally, coauthor aliases can be added to the Git config:
3737
.PP
3838
.RS 4
3939
.nf
40-
git config --add coauthor.foo 'Foo <foo@foo.com>'
40+
git config --add coauthor\.joe 'Joe Blow <foo@foo\.com>'
4141
.fi
4242
.RE
4343
.PP
44-
Remove a coauthor from the Git configuration:
44+
To remove a coauthor from the Git config:
4545
.PP
4646
.RS 4
4747
.nf
48-
git config --unset coauthor.foo
48+
git config --unset coauthor\.joe
4949
.fi
5050
.RE
5151
.SH EXAMPLES
5252
List coauthors on the HEAD commit:
5353
.PP
5454
.RS 4
55+
.nf
5556
git coauthor
57+
.fi
5658
.RE
5759
.PP
5860
Add coauthors to the HEAD commit:
5961
.PP
6062
.RS 4
61-
git coauthor foo bar
63+
.nf
64+
git coauthor Joe
65+
git coauthor Joe Jim
66+
git coauthor 'Joe Blow' 'Jim Bob'
67+
.fi
6268
.RE
6369
.PP
6470
Delete coauthors from the HEAD commit:
6571
.PP
6672
.RS 4
67-
git coauthor -d foo bar
73+
.nf
74+
git coauthor -d Joe
75+
git coauthor -d Joe Jim
76+
git coauthor -d 'Joe Blow' 'Jim Bob'
77+
.fi
6878
.RE
6979
.PP
7080
Delete all coauthors from the HEAD commit:
7181
.PP
7282
.RS 4
83+
.nf
7384
git coauthor -d
85+
.fi
7486
.RE
7587
EOF

src/main.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ List, add or delete Git coauthors
1414
Description
1515
1616
Git coauthor manages \"Co-authored-by\" lines on the HEAD commit. Coauthors
17-
are specified as name or email details from the repository's commit history
18-
or as aliases configured via `git config`.
17+
may be specified as name or email details from the repository's commit history
18+
or as aliases configured via Git config.
1919
2020
Options
2121
@@ -43,13 +43,13 @@ Examples
4343
4444
git coauthor Joe
4545
git coauthor Joe Jim
46-
git coauthor \"Joe Blow\" \"Jim Bob\"
46+
git coauthor 'Joe Blow' 'Jim Bob'
4747
4848
Delete coauthors from the HEAD commit:
4949
5050
git coauthor -d Joe
5151
git coauthor -d Joe Jim
52-
git coauthor -d \"Joe Blow\" \"Jim Bob\"
52+
git coauthor -d 'Joe Blow' 'Jim Bob'
5353
5454
Delete all coauthors from the HEAD commit:
5555

0 commit comments

Comments
 (0)