Minor cosmetic fixes to notes.c
Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>maint
parent
67bc740721
commit
0ab1faae39
3
notes.c
3
notes.c
|
@ -1,7 +1,6 @@
|
|||
#include "cache.h"
|
||||
#include "commit.h"
|
||||
#include "notes.h"
|
||||
#include "refs.h"
|
||||
#include "utf8.h"
|
||||
#include "strbuf.h"
|
||||
#include "tree-walk.h"
|
||||
|
@ -274,7 +273,7 @@ static void note_tree_free(struct int_node *tree)
|
|||
* - hex_len - Length of above segment. Must be multiple of 2 between 0 and 40
|
||||
* - sha1 - Partial SHA1 value is written here
|
||||
* - sha1_len - Max #bytes to store in sha1, Must be >= hex_len / 2, and < 20
|
||||
* Returns -1 on error (invalid arguments or invalid SHA1 (not in hex format).
|
||||
* Returns -1 on error (invalid arguments or invalid SHA1 (not in hex format)).
|
||||
* Otherwise, returns number of bytes written to sha1 (i.e. hex_len / 2).
|
||||
* Pads sha1 with NULs up to sha1_len (not included in returned length).
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue