commit - 38e1179369d8cbec312136765644b9200791882e
commit + 1fd6d7eaef8643842b590fd6ffeedb6058fae21b
blob - 0e133f08ba036c27575617a71a5cba9787d971bc
blob + 8ead4c57ca8473ba946ed37a8f7cd071e558e3c0
--- 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 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
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
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;
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;
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;
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
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;
if (errstr != NULL)
err(1, "-l option %s", errstr);
break;
- case 'v':
- verbose = 1;
- break;
case 'f':
first_parent_traversal = 1;
break;
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);