[PATCH 2/5] ui-tree: move set_title_from_path to ui-shared

John Keeping john at keeping.me.uk
Sat Sep 30 13:56:26 CEST 2017


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 <whydoubt at gmail.com>
> ---
>  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?


More information about the CGit mailing list