From mboxrd@z Thu Jan 1 00:00:00 1970 From: whydoubt at gmail.com (Jeff Smith) Date: Wed, 27 Sep 2017 17:43:26 -0500 Subject: [PATCH 0/5] Add ui-blame In-Reply-To: <20170923033848.5922-1-whydoubt@gmail.com> References: <20170923033848.5922-1-whydoubt@gmail.com> Message-ID: <20170927224331.26494-1-whydoubt@gmail.com> I split git blame functionality into libgit, and the changes were accepted upstream and are a part of git 2.14. Now that the git infrastructure is in place, here is what is needed for cgit to make use of it. Since RFCv2: . Re-ordered and squashed some of the patches . Used cgit's commitinfo structure . Factored set_title_from_path out to ui-shared . Made cgit_commit_link's first parameter const char* . Disabled the feature by default . Simplified changes to html_ntxt / html_txt Jeff Smith (5): html: html_ntxt with no ellipsis ui-tree: move set_title_from_path to ui-shared ui-shared: make a char* parameter const ui-blame: add blame UI ui-tree: link to blame UI if enabled cgit.c | 2 + cgit.css | 8 +++ cgit.h | 1 + cgit.mk | 1 + cgitrc.5.txt | 9 +++ cmd.c | 12 +++- html.c | 24 ++----- html.h | 2 +- ui-blame.c | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ui-blame.h | 7 ++ ui-repolist.c | 3 +- ui-shared.c | 70 ++++++++++++++---- ui-shared.h | 7 +- ui-tree.c | 41 +++-------- 14 files changed, 341 insertions(+), 70 deletions(-) create mode 100644 ui-blame.c create mode 100644 ui-blame.h -- 2.9.4