summaryrefslogtreecommitdiff
path: root/commit.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-07 17:35:54 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-06-11 22:15:21 (GMT)
commit81c6b38b67019eff48e8e5c324bb77f6c796c0b5 (patch)
treedf64e27cad14932b531c7e28a4638c885739ac52 /commit.h
parentda24b1044f7dc85cda52d6423f5a794a7074fbf8 (diff)
downloadgit-81c6b38b67019eff48e8e5c324bb77f6c796c0b5.zip
git-81c6b38b67019eff48e8e5c324bb77f6c796c0b5.tar.gz
git-81c6b38b67019eff48e8e5c324bb77f6c796c0b5.tar.bz2
log: --author-date-order
Sometimes people would want to view the commits in parallel histories in the order of author dates, not committer dates. Teach "topo-order" sort machinery to do so, using a commit-info slab to record the author dates of each commit, and prio-queue to sort them. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.h')
-rw-r--r--commit.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/commit.h b/commit.h
index 247e474..e43dfd0 100644
--- a/commit.h
+++ b/commit.h
@@ -142,7 +142,8 @@ void clear_commit_marks_for_object_array(struct object_array *a, unsigned mark);
enum rev_sort_order {
REV_SORT_IN_GRAPH_ORDER = 0,
- REV_SORT_BY_COMMIT_DATE
+ REV_SORT_BY_COMMIT_DATE,
+ REV_SORT_BY_AUTHOR_DATE
};
/*