commit 1fd6d7eaef8643842b590fd6ffeedb6058fae21b from: Stefan Sperling date: Wed Jun 13 16:54:05 2018 UTC remove unused -v option for 'got log' commit - 38e1179369d8cbec312136765644b9200791882e commit + 1fd6d7eaef8643842b590fd6ffeedb6058fae21b blob - 0e133f08ba036c27575617a71a5cba9787d971bc blob + 8ead4c57ca8473ba946ed37a8f7cd071e558e3c0 --- got/got.1 +++ 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. blob - 59821dd13e5b1d23f8d1fc933cc8c4b435d9c713 blob + 61a7b2a7f1aa2c2c00203f9f5cd92cd5180e5654 --- got/got.c +++ 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 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_ 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);