]> git.ipfire.org Git - thirdparty/git.git/commit - notes.h
notes: create init_display_notes() helper
authorDenton Liu <liu.denton@gmail.com>
Mon, 9 Dec 2019 13:10:41 +0000 (05:10 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Dec 2019 21:36:44 +0000 (13:36 -0800)
commite6e230eeae0f3cb46c4c356e6cd0a0f1119a2a83
tree0234ae345c7d5255f6d3fc5b41d79c485de100f2
parent1e6ed5441a61b5085978e0429691e2e2425f6846
notes: create init_display_notes() helper

We currently open code the initialization for revs->notes_opt. Abstract
this away into a helper function so that the logic can be reused in a
future commit.

This is slightly wasteful as we memset the struct twice but this is only
run once so it shouldn't have any major effect.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
notes.c
notes.h
revision.c