commit - 1cfab7188b4f78c90066eef4f76c1bf2d8adc490
commit + 6238ee32f50c81a3a366335b56251ac93ed493f5
blob - cfeac18bca06f092bc751cdfbbed10afdd1dbf5e
blob + b7807ca827952f505c4858f826aa7a828c5ee860
--- got/got.1
+++ got/got.1
.El
.\".It Cm status
.\"Show current status of files.
-.It Cm log [ Fl p ] [ Fl c Ar commit ] [ Fl l Ar N ] [ Fl f ] [ Ar repository-path ]
+.It Cm log [ Fl c Ar commit ] [ Fl f ] [ Fl l Ar N ] [ Fl p ] [ Ar repository-path ]
Display history of a repository.
If the
.Ar repository path
.Cm got log
are as follows:
.Bl -tag -width Ds
-.It Fl p
-Display the patch of modifications made in each commit.
.It Fl c Ar commit
Start traversing history at the specified
.Ar commit .
The expected argument is the name of a branch or a SHA1 hash which corresponds
to a commit object.
-.It Fl l Ar N
-Limit history traversal to a given number of commits.
.It Fl f
Restrict history traversal to the first parent of each commit.
This shows the linear history of the current branch only.
Merge commits which affected the current branch will be shown but
individual commits which originated on other branches will be omitted.
+.It Fl l Ar N
+Limit history traversal to a given number of commits.
+.It Fl p
+Display the patch of modifications made in each commit.
.El
.It Cm diff [ Ar repository-path ] Ar object1 Ar object2
Display the differences between two objects in the repository.
blob - 6319c20a471cb8961ca9f4fd5de83aeef380f174
blob + a8dad302445587afca3921aacfe506fb6b487b18
--- got/got.c
+++ got/got.c
__dead static void
usage_log(void)
{
- fprintf(stderr, "usage: %s log [-pf] [-c commit] [ -l N ] "
+ fprintf(stderr, "usage: %s log [-c commit] [-f] [ -l N ] [-p] "
"[repository-path]\n", getprogname());
exit(1);
}