Commit Graph

152 Commits (master)

Author SHA1 Message Date
Ævar Arnfjörð Bjarmason 5cf88fd8b0 git-compat-util.h: use "UNUSED", not "UNUSED(var)" 1 month ago
Jeff King 63e14ee2d6 refs: mark unused each_ref_fn parameters 2 months ago
Derrick Stolee b9342b3fd6 refs: add array of ref namespaces 2 months ago
Ævar Arnfjörð Bjarmason c80d226a04 object-file API: have write_object_file() take "enum object_type" 7 months ago
brian m. carlson 14228447c9 hash: provide per-algorithm null OIDs 1 year ago
brian m. carlson 5a6dce70d7 hash: set, copy, and use algo field in struct object_id 1 year ago
brian m. carlson 92e2cab96b Always use oidread to read into struct object_id 1 year ago
René Scharfe ca56dadb4b use CALLOC_ARRAY 2 years ago
Nate Avers c3eb95a0d7 notes.c: fix a segfault in notes_display_config() 2 years ago
René Scharfe a91cc7fad0 strbuf: add and use strbuf_insertstr() 3 years ago
Johan Herland dbc27477ff notes.c: fix off-by-one error when decreasing notes fanout 3 years ago
Junio C Hamano 145136a95a C: use skip_prefix() to avoid hardcoded string length 3 years ago
Denton Liu 1d7297513d notes: break set_display_notes() into smaller functions 3 years ago
Denton Liu 452538c358 notes: extract logic into set_display_notes() 3 years ago
Denton Liu e6e230eeae notes: create init_display_notes() helper 3 years ago
Denton Liu 1e6ed5441a notes: rename to load_display_notes() 3 years ago
Jeff King 60fe477a0b notes: avoid potential use-after-free during insertion 3 years ago
Mike Hommey 779ad6641b notes: avoid leaking duplicate entries 3 years ago
Nguyễn Thái Ngọc Duy 50ddb089ff tree-walk.c: remove the_repo from get_tree_entry() 3 years ago
Nguyễn Thái Ngọc Duy 5e57580733 tree-walk.c: remove the_repo from fill_tree_descriptor() 3 years ago
Elijah Newren 5ec1e72823 Use 'unsigned short' for mode, like diff_filespec does 4 years ago
brian m. carlson 0dbc6462ee notes: replace sha1_to_hex 4 years ago
brian m. carlson dd43745131 notes: make hash size independent 4 years ago
brian m. carlson ea82b2a085 tree-walk: store object_id in a separate member 4 years ago
Jeff King 9001dc2a74 convert "oidcmp() != 0" to "!oideq()" 4 years ago
Jeff King e3ff0683e2 convert "hashcmp() == 0" to hasheq() 4 years ago
Jeff King 4a7e27e957 convert "oidcmp() == 0" to oideq() 4 years ago
Stefan Beller cbd53a2193 object-store: move object access functions to object-store.h 4 years ago
brian m. carlson b4f5aca40e sha1_file: convert read_sha1_file to struct object_id 5 years ago
brian m. carlson 916bc35b29 tree-walk: convert tree entry functions to object_id 5 years ago
Patryk Obara a09c985eae sha1_file: convert write_sha1_file to object_id 5 years ago
Patryk Obara bbca96d579 notes: convert write_notes_tree to object_id 5 years ago
Patryk Obara b7d591d17b notes: convert combine_notes_* to object_id 5 years ago
René Scharfe 0ec218656a notes: move hex_to_bytes() to hex.c and export it 5 years ago
brian m. carlson 34c290a6fc refs: convert read_ref and read_ref_full to object_id 5 years ago
Michael Haggerty 3964281524 load_subtree(): check that `prefix_len` is in the expected range 5 years ago
Michael Haggerty 06cfa75675 load_subtree(): declare some variables to be `size_t` 5 years ago
Michael Haggerty cfdc88f1a3 hex_to_bytes(): simpler replacement for `get_oid_hex_segment()` 5 years ago
Michael Haggerty d49852d6f8 get_oid_hex_segment(): don't pad the rest of `oid` 5 years ago
Michael Haggerty 4ebef533d7 load_subtree(): combine some common code 5 years ago
Michael Haggerty 67c9b42251 get_oid_hex_segment(): return 0 on success 5 years ago
Michael Haggerty 4043218795 load_subtree(): only consider blobs to be potential notes 5 years ago
Michael Haggerty 4d589b87e8 load_subtree(): check earlier whether an internal node is a tree entry 5 years ago
Michael Haggerty 98c9897d9e load_subtree(): separate logic for internal vs. terminal entries 5 years ago
Michael Haggerty cbeed9aaa5 load_subtree(): fix incorrect comment 5 years ago
Michael Haggerty a281639262 load_subtree(): reduce the scope of some local variables 5 years ago
Michael Haggerty d3b0c6bebf load_subtree(): remove unnecessary conditional 5 years ago
Michael Haggerty 65eb8e0ca7 notes: make GET_NIBBLE macro more robust 5 years ago
René Scharfe 5c377d3d59 tree-walk: convert fill_tree_descriptor() to object_id 5 years ago
brian m. carlson e82caf384b sha1_name: convert get_sha1* to get_oid* 5 years ago