From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Sat, 20 Apr 2013 11:14:35 +0100 Subject: [PATCH v2 0/2] Allow users to follow file renames In-Reply-To: <20130419075437.GD2278@serenity.lan> References: <20130419075437.GD2278@serenity.lan> Message-ID: I've split this into two patches now because getting the file and line counts right in the log view is made easier if we can reuse the cgit_diff_tree_cb function from shared.c. Most of the changes from v1 involve getting things right in the commits where we actually perform a rename. Getting the commit/diff links right just involves updating the context's vpath when we run the diff to see if the file has changed so that the commit & diff links specify the file as it was known in that commit. John Keeping (2): shared: make cgit_diff_tree_cb public log: allow users to follow a file cgit.c | 4 ++ cgit.h | 5 +++ cgitrc.5.txt | 4 ++ shared.c | 4 +- ui-diff.c | 35 ++++++++++++++++ ui-log.c | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++------ ui-refs.c | 2 +- ui-repolist.c | 2 +- ui-shared.c | 28 +++++++++++-- ui-shared.h | 2 +- ui-tree.c | 2 +- 11 files changed, 199 insertions(+), 22 deletions(-) -- 1.8.2.1.715.gb260f47