List for cgit developers and users
 help / color / mirror / Atom feed
From: john at keeping.me.uk (John Keeping)
Subject: [PATCH v2 0/2] Allow users to follow file renames
Date: Sat, 20 Apr 2013 11:14:35 +0100	[thread overview]
Message-ID: <cover.1366452850.git.john@keeping.me.uk> (raw)
In-Reply-To: <20130419075437.GD2278@serenity.lan>

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





  reply	other threads:[~2013-04-20 10:14 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-15 11:51 log --follow 
2013-04-15 12:38 ` john
2013-04-15 17:30   ` 
2013-04-16  8:48     ` john
2013-04-17 19:48       ` [PATCH] log: allow users to follow a file john
2013-04-18 17:31         ` 
2013-04-19  7:54           ` john
2013-04-20 10:14             ` john [this message]
2013-04-20 10:14               ` [PATCH v2 1/2] shared: make cgit_diff_tree_cb public john
2013-04-20 10:14               ` [PATCH v2 2/2] log: allow users to follow a file john
2013-04-20 11:21                 ` 
2013-04-20 12:21                 ` [PATCH 2/2 v3] " john
2015-03-24  6:02                   ` 
2015-08-12 14:34                   ` [PATCH v4 1/2] shared: make cgit_diff_tree_cb public john
2015-08-12 14:55                     ` [PATCH v4 2/2] log: allow users to follow a file john
2015-08-12 15:01                       ` Jason
2015-08-12 15:41                     ` [PATCH v4 1/2] shared: make cgit_diff_tree_cb public Jason
2013-04-26 13:52               ` [PATCH v2 0/2] Allow users to follow file renames Jason

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1366452850.git.john@keeping.me.uk \
    --to=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).