]> git.armaanb.net Git - stagit.git/commitdiff
change order of commits in log from most recent to old to applied order
authorHiltjo Posthuma <hiltjo@codemadness.org>
Thu, 7 Feb 2019 20:00:06 +0000 (21:00 +0100)
committerHiltjo Posthuma <hiltjo@codemadness.org>
Sat, 16 Feb 2019 20:17:45 +0000 (21:17 +0100)
LICENSE
stagit-index.c
stagit.1
stagit.c

diff --git a/LICENSE b/LICENSE
index 3dc99fed529b91aead13641453031f4a534925e0..1305e355d9d4abb9e3ffb462b6565276a5153dc4 100644 (file)
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
 MIT/X Consortium License
 
-(c) 2015-2018 Hiltjo Posthuma <hiltjo@codemadness.org>
+(c) 2015-2019 Hiltjo Posthuma <hiltjo@codemadness.org>
 (c) 2015-2016 Dimitris Papastamos <sin@2f30.org>
 
 Permission is hereby granted, free of charge, to any person obtaining a
index ab47e4877139fba415d5d608490123069adbb862..accb1a534cb027dc08dc5f87e11a230a9f328523 100644 (file)
@@ -105,7 +105,6 @@ writelog(FILE *fp)
 
        git_revwalk_new(&w, repo);
        git_revwalk_push_head(w);
-       git_revwalk_sorting(w, GIT_SORT_TIME);
        git_revwalk_simplify_first_parent(w);
 
        if (git_revwalk_next(&id, w) ||
index 3e9a77a7959985835ecea398d69a6af48837b304..360f7166826423c27b98044f285669ddfbe25820 100644 (file)
--- a/stagit.1
+++ b/stagit.1
@@ -1,4 +1,4 @@
-.Dd Januari 21, 2018
+.Dd February 6, 2019
 .Dt STAGIT 1
 .Os
 .Sh NAME
@@ -46,8 +46,8 @@ Atom XML feed
 .It files.html
 List of files in the latest tree, linking to the file.
 .It log.html
-List of commits in order of most recent to old of the commits (top to bottom),
-each commit links to a page with a diffstat and diff of the commit.
+List of commits in reverse chronological applied commit order, each commit
+links to a page with a diffstat and diff of the commit.
 .It refs.html
 Lists references of the repository such as branches and tags.
 .El
index c2b2f2cb7c48c7ec0932f35b587cd1faea14a30d..b8abea32fa447225f26b9ef793e0ae7c4723b771 100644 (file)
--- a/stagit.c
+++ b/stagit.c
@@ -606,7 +606,6 @@ writelog(FILE *fp, const git_oid *oid)
 
        git_revwalk_new(&w, repo);
        git_revwalk_push(w, oid);
-       git_revwalk_sorting(w, GIT_SORT_TIME);
        git_revwalk_simplify_first_parent(w);
 
        while (!git_revwalk_next(&id, w)) {
@@ -736,7 +735,6 @@ writeatom(FILE *fp)
 
        git_revwalk_new(&w, repo);
        git_revwalk_push_head(w);
-       git_revwalk_sorting(w, GIT_SORT_TIME);
        git_revwalk_simplify_first_parent(w);
 
        for (i = 0; i < m && !git_revwalk_next(&id, w); i++) {