author | Junio C Hamano <gitster@pobox.com> | |
Tue, 8 Jul 2008 22:25:44 +0000 (15:25 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 8 Jul 2008 22:25:44 +0000 (15:25 -0700) |
* 'jc/blame' (early part):
git-blame --reverse
builtin-blame.c: allow more than 16 parents
builtin-blame.c: move prepare_final() into a separate function.
rev-list --children
revision traversal: --children option
Conflicts:
Documentation/rev-list-options.txt
revision.c
git-blame --reverse
builtin-blame.c: allow more than 16 parents
builtin-blame.c: move prepare_final() into a separate function.
rev-list --children
revision traversal: --children option
Conflicts:
Documentation/rev-list-options.txt
revision.c
1 | 2 | |||
---|---|---|---|---|
Documentation/rev-list-options.txt | patch | | diff1 | | diff2 | | blob | history |
builtin-blame.c | patch | | diff1 | | diff2 | | blob | history |
builtin-rev-list.c | patch | | diff1 | | diff2 | | blob | history |
revision.c | patch | | diff1 | | diff2 | | blob | history |
revision.h | patch | | diff1 | | diff2 | | blob | history |
diff --cc Documentation/rev-list-options.txt
index 37dd1d61ea36d7afb1e1b16cc46bee0d357ad1c8,e5823950e2a199a0ee4853147dd687d18f0c4387..b6f5d87e723bec4f00a3929274c43bfd478cc083
Print the parents of the commit.
+ --children::
+
+ Print the children of the commit.
+
+ifdef::git-rev-list[]
--timestamp::
Print the raw commit timestamp.
+endif::git-rev-list[]
--left-right::
diff --cc builtin-blame.c
index b451f6c64dde8ce6358bb5c8dfccc8bad181a6bb,5c7546db2514742851b405481373add26018756a..cf41511c798330a7e0ec02db5785747ad2b662a5
--- 1/builtin-blame.c
--- 2/builtin-blame.c
+++ b/builtin-blame.c
blank_boundary = git_config_bool(var, value);
return 0;
}
- return git_default_config(var, value);
+ return git_default_config(var, value, cb);
}
+ /*
+ * Prepare a dummy commit that represents the work tree (or staged) item.
+ * Note that annotating work tree item never works in the reverse.
+ */
static struct commit *fake_working_tree_commit(const char *path, const char *contents_from)
{
struct commit *commit;
diff --cc builtin-rev-list.c
Simple merge
diff --cc revision.c
index fc667552592daa3c894d0df4e97469d1809dbf27,979241eb0dd7a3fe0123c2c9af9c06ad77d3ac52..5a1a948a41e8f2ae2df01c0a61d2e228cc79caab
--- 1/revision.c
--- 2/revision.c
+++ b/revision.c
if (revs->reverse && revs->reflog_info)
die("cannot combine --reverse with --walk-reflogs");
- if (revs->parents && revs->children.name)
++ if (revs->rewrite_parents && revs->children.name)
+ die("cannot combine --parents and --children");
+
+ /*
+ * Limitations on the graph functionality
+ */
+ if (revs->reverse && revs->graph)
+ die("cannot combine --reverse with --graph");
+
+ if (revs->reflog_info && revs->graph)
+ die("cannot combine --walk-reflogs with --graph");
+
return left;
}
commit->buffer, strlen(commit->buffer));
}
- return (revs->parents || revs->children.name);
+ static inline int want_ancestry(struct rev_info *revs)
+ {
++ return (revs->rewrite_parents || revs->children.name);
+ }
+
enum commit_action simplify_commit(struct rev_info *revs, struct commit *commit)
{
if (commit->object.flags & SHOWN)
diff --cc revision.h
Simple merge