From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Sat, 30 Sep 2017 12:56:26 +0100 Subject: [PATCH 2/5] ui-tree: move set_title_from_path to ui-shared In-Reply-To: <20170927224331.26494-3-whydoubt@gmail.com> References: <20170923033848.5922-1-whydoubt@gmail.com> <20170927224331.26494-1-whydoubt@gmail.com> <20170927224331.26494-3-whydoubt@gmail.com> Message-ID: <20170930115626.GB2327@john.keeping.me.uk> On Wed, Sep 27, 2017 at 05:43:28PM -0500, Jeff Smith wrote: > The ui-blame code will also need to call set_title_from_path, so go > ahead and move it to ui-shared. > > Signed-off-by: Jeff Smith > --- > ui-shared.c | 31 +++++++++++++++++++++++++++++++ > ui-shared.h | 2 ++ > ui-tree.c | 31 ------------------------------- > 3 files changed, 33 insertions(+), 31 deletions(-) > > diff --git a/ui-shared.c b/ui-shared.c > index e5c9a02..4ace20c 100644 > --- a/ui-shared.c > +++ b/ui-shared.c > @@ -1111,3 +1111,34 @@ void cgit_print_snapshot_links(const char *repo, const char *head, > } > strbuf_release(&filename); > } > + > +void set_title_from_path(const char *path) Should this be renamed to cgit_set_title_from_path now that it's exported?