summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b293492)
raw | patch | inline | side by side (parent: b293492)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 16 Apr 2006 09:42:00 +0000 (02:42 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 16 Apr 2006 09:42:00 +0000 (02:42 -0700) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
git.c | patch | blob | history |
index a6cfd1d8aaf13bf391c69c7f91b14fd68e0d36e9..cc43bfcaba827b8e71f266d0698f4e2656ac9c7f 100644 (file)
--- a/git.c
+++ b/git.c
const char *commit_prefix = "commit ";
int shown = 0;
+ rev->abbrev = DEFAULT_ABBREV;
+ rev->commit_format = CMIT_FMT_DEFAULT;
+ rev->no_commit_id = 1;
+ argc = setup_revisions(argc, argv, rev, "HEAD");
+
if (argc > 1)
die("unrecognized argument: %s", argv[1]);
if (rev->commit_format == CMIT_FMT_ONELINE)
struct rev_info rev;
init_revisions(&rev);
- rev.abbrev = DEFAULT_ABBREV;
- rev.no_commit_id = 1;
- rev.commit_format = CMIT_FMT_DEFAULT;
rev.diff = 1;
rev.diffopt.recursive = 1;
- argc = setup_revisions(argc, argv, &rev, "HEAD");
return cmd_log_wc(argc, argv, envp, &rev);
}
init_revisions(&rev);
rev.diff = 1;
- rev.ignore_merges = 0;
+ rev.diffopt.recursive = 1;
rev.combine_merges = 1;
rev.dense_combined_merges = 1;
- rev.abbrev = DEFAULT_ABBREV;
- rev.commit_format = CMIT_FMT_DEFAULT;
- rev.diffopt.recursive = 1;
+ rev.ignore_merges = 0;
rev.no_walk = 1;
- argc = setup_revisions(argc, argv, &rev, "HEAD");
return cmd_log_wc(argc, argv, envp, &rev);
}
struct rev_info rev;
init_revisions(&rev);
- rev.abbrev = DEFAULT_ABBREV;
- rev.no_commit_id = 1;
- rev.commit_format = CMIT_FMT_DEFAULT;
- argc = setup_revisions(argc, argv, &rev, "HEAD");
return cmd_log_wc(argc, argv, envp, &rev);
}