]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'mh/notes-cleanup'
authorJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 01:47:52 +0000 (10:47 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Sep 2017 01:47:52 +0000 (10:47 +0900)
commit30675f7021f92b0e830fdb3c96370826d8f6723f
tree9214d703463496ce599c3f24cb620e5eafea7361
parenteb066429e7828496488d5bfbc496221b88e21377
parent396428152413f431cac18f68a7190827b4acb3b6
Merge branch 'mh/notes-cleanup'

Code clean-up.

* mh/notes-cleanup:
  load_subtree(): check that `prefix_len` is in the expected range
  load_subtree(): declare some variables to be `size_t`
  hex_to_bytes(): simpler replacement for `get_oid_hex_segment()`
  get_oid_hex_segment(): don't pad the rest of `oid`
  load_subtree(): combine some common code
  get_oid_hex_segment(): return 0 on success
  load_subtree(): only consider blobs to be potential notes
  load_subtree(): check earlier whether an internal node is a tree entry
  load_subtree(): separate logic for internal vs. terminal entries
  load_subtree(): fix incorrect comment
  load_subtree(): reduce the scope of some local variables
  load_subtree(): remove unnecessary conditional
  notes: make GET_NIBBLE macro more robust
notes.c