]> git.ipfire.org Git - thirdparty/git.git/commit - notes.c
notes: extract logic into set_display_notes()
authorDenton Liu <liu.denton@gmail.com>
Mon, 9 Dec 2019 13:10:44 +0000 (05:10 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Dec 2019 21:36:45 +0000 (13:36 -0800)
commit452538c3586a76939faf43019fb7c21b3147309b
tree59871359eee629a5b38711cdb9feb6fc6a3b95f6
parente6e230eeae0f3cb46c4c356e6cd0a0f1119a2a83
notes: extract logic into set_display_notes()

Instead of open coding the logic that tweaks the variables in
`struct display_notes_opt` within handle_revision_opt(), abstract away the
logic into set_display_notes() so that it can be reused.

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