Revision a59b9c9c6bcce0650d550eaa23aa0fb1842ec200 authored by Shourya Shukla on 15 January 2020, 12:20:16 UTC, committed by Shourya Shukla on 15 January 2020, 12:20:16 UTC
Take advantage of helper function test_path_is_file() to
replace test -f since the functions enhance readability
of code and provide better error messages. Replaced | with >
and removed the redundant occurance of -t and blob in
git hash-object because the type(-t) is set as blob by default

Signed-off by: Shourya Shukla <shouryashukla.oo@gmail.com>
1 parent 34a0e43
Raw File
varint.h
#ifndef VARINT_H
#define VARINT_H

int encode_varint(uintmax_t, unsigned char *);
uintmax_t decode_varint(const unsigned char **);

#endif /* VARINT_H */
back to top