From: John Keeping Date: Sat, 31 Mar 2018 13:05:02 +0000 (+0100) Subject: ui-shared: pass repo object to print_snapshot_links() X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/bd1b281478c8d8ab45f723ac5818d58da4a64dd1?ds=sidebyside;hp=bd1b281478c8d8ab45f723ac5818d58da4a64dd1 ui-shared: pass repo object to print_snapshot_links() Both call sites of cgit_print_snapshot_links() use the same values for the snapshot mask and repository name, which are derived from the cgit_repo structure so let's pass in the structure and access the fields directly. Signed-off-by: John Keeping Reviewed-by: Christian Hesse ---