notes: make get_note return pointer to struct object_id
commit9ef7223058a44990dc4650ecb1209c97ceb636b3
authorbrian m. carlson <sandals@crustytoothpaste.net>
Tue, 30 May 2017 17:30:40 +0000 (30 10:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Jun 2017 00:36:06 +0000 (2 09:36 +0900)
treee3aa8240bac2be6a2bf5ad158023ec31a67d3457
parent490bc83a01acfefa11e98f8852b1f4a9dd962331
notes: make get_note return pointer to struct object_id

Make get_note return a pointer to a const struct object_id.  Add a
defensive check to ensure we don't accidentally dereference a NULL
pointer.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/notes.c
notes-cache.c
notes.c
notes.h
remote-testsvn.c