Diff options
authorJohn Keeping <john@keeping.me.uk>
committerJason A. Donenfeld <Jason@zx2c4.com>
commit
parent
tree
download
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 <john@keeping.me.uk> Reviewed-by: Christian Hesse <mail@eworm.de>
-rw-r--r--ui-commit.c3
-rw-r--r--ui-shared.c8
-rw-r--r--ui-shared.h4
-rw-r--r--ui-tag.c3
4 files changed, 8 insertions, 10 deletions