remove unused -v option for 'got log'
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
diff --git a/got/got.1 b/got/got.1
index 0e133f0..8ead4c5 100644
--- a/got/got.1
+++ b/got/got.1
@@ -91,7 +91,7 @@ will be checked out.
.El
.\".It Cm status
.\"Show current status of files.
-.It Cm log [ Fl p ] [ Fl c Ar commit ] [ Fl l Ar N ] [ Fl v ] [ Fl f ] [ Ar repository-path ]
+.It Cm log [ Fl p ] [ Fl c Ar commit ] [ Fl l Ar N ] [ Fl f ] [ Ar repository-path ]
Display history of a repository.
If the
.Ar repository path
@@ -109,8 +109,6 @@ Start traversing history at the specified
The expected argument is the SHA1 hash which corresponds to the commit object.
.It Fl l Ar N
Limit history traversal to a given number of commits.
-.It Fl v
-Show verbose output.
.It Fl f
Restrict history traversal to the first parent of each commit.
This shows the linear history of the current branch only.
diff --git a/got/got.c b/got/got.c
index 59821dd..61a7b2a 100644
--- a/got/got.c
+++ b/got/got.c
@@ -318,7 +318,7 @@ get_datestr(time_t *time, char *datebuf)
static const struct got_error *
print_commit(struct got_commit_object *commit, struct got_object_id *id,
- struct got_repository *repo, int show_patch, int verbose)
+ struct got_repository *repo, int show_patch)
{
const struct got_error *err = NULL;
char *id_str, *datestr, *logmsg, *line;
@@ -375,7 +375,7 @@ print_commit(struct got_commit_object *commit, struct got_object_id *id,
static const struct got_error *
print_commits(struct got_object *root_obj, struct got_object_id *root_id,
- struct got_repository *repo, int show_patch, int limit, int verbose,
+ struct got_repository *repo, int show_patch, int limit,
int first_parent_traversal)
{
const struct got_error *err;
@@ -414,7 +414,7 @@ print_commits(struct got_object *root_obj, struct got_object_id *root_id,
err = got_object_open_as_commit(&commit, repo, id);
if (err)
return err;
- err = print_commit(commit, id, repo, show_patch, verbose);
+ err = print_commit(commit, id, repo, show_patch);
got_object_commit_close(commit);
if (err || (limit && --limit == 0))
break;
@@ -442,7 +442,7 @@ cmd_log(int argc, char *argv[])
char *repo_path = NULL;
char *start_commit = NULL;
int ch;
- int show_patch = 0, limit = 0, verbose = 0, first_parent_traversal = 0;
+ int show_patch = 0, limit = 0, first_parent_traversal = 0;
const char *errstr;
#ifndef PROFILE
@@ -450,7 +450,7 @@ cmd_log(int argc, char *argv[])
err(1, "pledge");
#endif
- while ((ch = getopt(argc, argv, "pc:l:vf")) != -1) {
+ while ((ch = getopt(argc, argv, "pc:l:f")) != -1) {
switch (ch) {
case 'p':
show_patch = 1;
@@ -463,9 +463,6 @@ cmd_log(int argc, char *argv[])
if (errstr != NULL)
err(1, "-l option %s", errstr);
break;
- case 'v':
- verbose = 1;
- break;
case 'f':
first_parent_traversal = 1;
break;
@@ -516,7 +513,7 @@ cmd_log(int argc, char *argv[])
return error;
if (got_object_get_type(obj) == GOT_OBJ_TYPE_COMMIT)
error = print_commits(obj, id, repo, show_patch, limit,
- verbose, first_parent_traversal);
+ first_parent_traversal);
else
error = got_error(GOT_ERR_OBJ_TYPE);
got_object_close(obj);