[PATCH v2 0/2] Allow users to follow file renames

John Keeping john at keeping.me.uk
Sat Apr 20 12:14:35 CEST 2013


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





More information about the CGit mailing list