aboutsummaryrefslogtreecommitdiffstats
path: root/notes.c
AgeCommit message (Expand)AuthorFilesLines
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-2/+0
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-1/+3
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-1/+3
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-05-02Merge branch 'tb/ban-strtok'Junio C Hamano1-1/+1
2023-05-02Merge branch 'jk/misc-null-check-fixes'Junio C Hamano1-2/+2
2023-04-24string-list: multi-delimiter `string_list_split_in_place()`Taylor Blau1-1/+1
2023-04-24notes: clean up confusing NULL checks in init_notes()Jeff King1-2/+2
2023-04-11treewide: remove cache.h inclusion due to object-name.h changesElijah Newren1-1/+1
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+1
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-8/+10
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-8/+10
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-5/+7
2023-03-28cocci: apply the "cache.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-3/+3
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-17Merge branch 'jk/unused-post-2.39-part2'Junio C Hamano1-5/+6
2023-02-24notes: mark unused callback parametersJeff King1-5/+6
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2022-09-14Merge branch 'ab/unused-annotation'Junio C Hamano1-2/+2
2022-09-14Merge branch 'jk/unused-annotation'Junio C Hamano1-2/+3
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-2/+2
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-2/+3
2022-08-05refs: add array of ref namespacesDerrick Stolee1-0/+1
2022-02-25object-file API: have write_object_file() take "enum object_type"Ævar Arnfjörð Bjarmason1-4/+4
2021-04-27hash: provide per-algorithm null OIDsbrian m. carlson1-1/+1
2021-04-27hash: set, copy, and use algo field in struct object_idbrian m. carlson1-0/+3
2021-04-27Always use oidread to read into struct object_idbrian m. carlson1-2/+2
2021-03-13use CALLOC_ARRAYRené Scharfe1-1/+1
2020-11-30Merge branch 'na/notes-displayref-is-not-boolean'Junio C Hamano1-1/+1
2020-11-23notes.c: fix a segfault in notes_display_config()Nate Avers1-1/+1
2020-02-17Merge branch 'rs/strbuf-insertstr'Junio C Hamano1-2/+2
2020-02-14Merge branch 'jh/notes-fanout-fix'Junio C Hamano1-8/+12
2020-02-10strbuf: add and use strbuf_insertstr()René Scharfe1-2/+2
2020-02-04notes.c: fix off-by-one error when decreasing notes fanoutJohan Herland1-8/+12
2020-01-31C: use skip_prefix() to avoid hardcoded string lengthJunio C Hamano1-4/+2
2019-12-25Merge branch 'dl/format-patch-notes-config-fixup'Junio C Hamano1-0/+33
2019-12-13notes: break set_display_notes() into smaller functionsDenton Liu1-20/+23
2019-12-09notes: extract logic into set_display_notes()Denton Liu1-0/+24
2019-12-09notes: create init_display_notes() helperDenton Liu1-0/+6
2019-12-09notes: rename to load_display_notes()Denton Liu1-1/+1
2019-09-30Merge branch 'mh/notes-duplicate-entries'Junio C Hamano1-2/+4
2019-08-26notes: avoid potential use-after-free during insertionJeff King1-1/+1
2019-08-26notes: avoid leaking duplicate entriesMike Hommey1-1/+3
2019-06-27tree-walk.c: remove the_repo from get_tree_entry()Nguyễn Thái Ngọc Duy1-1/+1
2019-06-27tree-walk.c: remove the_repo from fill_tree_descriptor()Nguyễn Thái Ngọc Duy1-1/+1
2019-05-09Merge branch 'en/merge-directory-renames'Junio C Hamano1-1/+1
2019-04-08Use 'unsigned short' for mode, like diff_filespec doesElijah Newren1-1/+1
2019-04-01notes: replace sha1_to_hexbrian m. carlson1-6/+6
2019-04-01notes: make hash size independentbrian m. carlson1-15/+17
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-2/+2
2018-08-29convert "oidcmp() != 0" to "!oideq()"Jeff King1-1/+1
2018-08-29convert "hashcmp() == 0" to hasheq()Jeff King1-1/+1
2018-08-29convert "oidcmp() == 0" to oideq()Jeff King1-2/+2
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-4/+4
2018-03-14tree-walk: convert tree entry functions to object_idbrian m. carlson1-1/+1
2018-01-30sha1_file: convert write_sha1_file to object_idPatryk Obara1-5/+4
2018-01-30notes: convert write_notes_tree to object_idPatryk Obara1-7/+9
2018-01-30notes: convert combine_notes_* to object_idPatryk Obara1-23/+23
2017-11-09Merge branch 'rs/hex-to-bytes-cleanup'Junio C Hamano1-17/+0
2017-11-01notes: move hex_to_bytes() to hex.c and export itRené Scharfe1-17/+0
2017-10-16refs: convert read_ref and read_ref_full to object_idbrian m. carlson1-1/+1
2017-09-19Merge branch 'mh/notes-cleanup'Junio C Hamano1-71/+70
2017-09-09load_subtree(): check that `prefix_len` is in the expected rangeMichael Haggerty1-1/+4
2017-08-26load_subtree(): declare some variables to be `size_t`Michael Haggerty1-3/+3
2017-08-26hex_to_bytes(): simpler replacement for `get_oid_hex_segment()`Michael Haggerty1-18/+10
2017-08-26get_oid_hex_segment(): don't pad the rest of `oid`Michael Haggerty1-11/+13
2017-08-26load_subtree(): combine some common codeMichael Haggerty1-9/+5
2017-08-26get_oid_hex_segment(): return 0 on successMichael Haggerty1-8/+7
2017-08-26load_subtree(): only consider blobs to be potential notesMichael Haggerty1-0/+5
2017-08-26load_subtree(): check earlier whether an internal node is a tree entryMichael Haggerty1-2/+5
2017-08-26load_subtree(): separate logic for internal vs. terminal entriesMichael Haggerty1-21/+31
2017-08-26load_subtree(): fix incorrect commentMichael Haggerty1-17/+7
2017-08-26load_subtree(): reduce the scope of some local variablesMichael Haggerty1-4/+4
2017-08-26load_subtree(): remove unnecessary conditionalMichael Haggerty1-18/+17
2017-08-26notes: make GET_NIBBLE macro more robustMichael Haggerty1-1/+1
2017-08-14tree-walk: convert fill_tree_descriptor() to object_idRené Scharfe1-1/+1
2017-07-17sha1_name: convert get_sha1* to get_oid*brian m. carlson1-1/+1
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-02notes: convert some accessor functions to struct object_idbrian m. carlson1-10/+10
2017-06-02notes: convert format_display_notes to struct object_idbrian m. carlson1-4/+4
2017-06-02notes: make get_note return pointer to struct object_idbrian m. carlson1-9/+9
2017-06-02notes: convert for_each_note to struct object_idbrian m. carlson1-12/+12
2017-06-02notes: convert internal parts to struct object_idbrian m. carlson1-31/+33
2017-06-02notes: convert internal structures to struct object_idbrian m. carlson1-47/+51
2017-03-27notes: do not break note_tree structure in note_tree_consolidate()Mike Hommey1-2/+4
2016-09-07notes: convert init_notes to use struct object_idbrian m. carlson1-6/+6
2016-06-13use string_list initializer consistentlyJeff King1-1/+1
2016-04-25struct name_entry: use struct object_id instead of unsigned char sha1[20]brian m. carlson1-2/+2
2016-02-26Merge branch 'jk/tighten-alloc'Junio C Hamano1-1/+1
2016-02-22convert trivial cases to ALLOC_ARRAYJeff King1-1/+1
2016-02-03Merge branch 'jk/notes-merge-from-anywhere'Junio C Hamano1-0/+10
2016-01-17notes: allow merging from arbitrary referencesJacob Keller1-0/+10
2016-01-12notes: allow treeish expressions as notes refMike Hommey1-4/+7
2015-10-05notes: document length of fanout path with a constantJeff King1-3/+6
2015-09-04Sync with 2.4.9Junio C Hamano1-9/+10
2015-09-04Sync with 2.2.3Junio C Hamano1-9/+10
2015-09-04notes: use a strbuf in add_non_noteJeff King1-9/+10
2015-05-25string_list_add_one_ref(): rewrite to take an object_id argumentMichael Haggerty1-5/+2
2015-05-25each_ref_fn: change to take an object_id parameterMichael Haggerty1-1/+4
2015-02-24Merge branch 'jk/blame-commit-label' into maintJunio C Hamano1-1/+1
2015-02-11Merge branch 'jk/blame-commit-label'Junio C Hamano1-1/+1
2015-01-13use xstrdup_or_null to replace ternary conditionalsJeff King1-1/+1
2014-12-22Merge branch 'mh/simplify-repack-without-refs'Junio C Hamano1-1/+1
2014-11-25sort_string_list(): rename to string_list_sort()Michael Haggerty1-1/+1
2014-11-12notes: empty notes should be shown by 'git log'Johan Herland1-2/+1
2014-05-27notes.c: rearrange xcalloc argumentsBrian Gesiak1-3/+3
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-4/+4
2013-06-02string_list_add_refs_by_glob(): add a comment about memory managementMichael Haggerty1-0/+4
2013-06-02string_list_add_one_ref(): rename first parameter to "refname"Michael Haggerty1-3/+3
2012-11-15Merge branch 'jc/prettier-pretty-note'Junio C Hamano1-6/+7
2012-11-15Merge branch 'mh/notes-string-list'Junio C Hamano1-36/+25
2012-11-15Merge branch 'jc/same-encoding'Junio C Hamano1-1/+1
2012-11-08string_list_add_refs_from_colon_sep(): use string_list_split()Michael Haggerty1-13/+8
2012-11-08notes: fix handling of colon-separated valuesMichael Haggerty1-2/+2
2012-11-08combine_notes_cat_sort_uniq(): sort and dedup lines all at onceMichael Haggerty1-22/+16
2012-11-08Initialize sort_uniq_list using named constantMichael Haggerty1-1/+1
2012-11-04reencode_string(): introduce and use same_encoding()Junio C Hamano1-1/+1
2012-10-17format_note(): simplify APIJunio C Hamano1-6/+7
2012-09-15notes.c: mark a private file-scope symbol as staticJunio C Hamano1-2/+12
2011-08-22Do not use C++-style commentsMichael Haggerty1-1/+1
2011-03-29notes: refactor display notes default handlingJeff King1-1/+2
2011-03-29notes: refactor display notes extra refs fieldJeff King1-2/+2
2011-03-29notes: make expand_notes_ref globally accessibleJeff King1-0/+10
2010-12-08Merge branch 'jh/notes-merge'Junio C Hamano1-92/+180
2010-11-17git notes merge: Add another auto-resolving strategy: "cat_sort_uniq"Johan Herland1-0/+76
2010-11-17notes.c: Use two newlines (instead of one) when concatenating notesJohan Herland1-3/+4
2010-11-17notes.h/c: Propagate combine_notes_fn return value to add_note() and beyondJohan Herland1-27/+28
2010-11-10notes.h/c: Allow combine_notes functions to remove notesJohan Herland1-1/+11
2010-11-10notes.c: Reorder functions in preparation for next commitJohan Herland1-73/+73
2010-11-10notes.h: Make default_notes_ref() available in notes APIJohan Herland1-1/+1
2010-11-10notes.c: Hexify SHA1 in die() message from init_notes()Johan Herland1-1/+1
2010-08-31notes: Don't create (empty) commit when removing non-existing notesJohan Herland1-4/+10
2010-07-05Convert the users of for_each_string_list to for_each_string_list_item macroAlex Riesen1-32/+14
2010-06-30Merge branch 'jp/string-list-api-cleanup'Junio C Hamano1-6/+6
2010-06-28Merge branch 'maint'Junio C Hamano1-1/+1
2010-06-28notes: Initialise variable to appease gccRamsay Jones1-1/+1
2010-06-27string_list: Fix argument order for string_list_appendJulian Phillips1-3/+3
2010-06-27string_list: Fix argument order for for_each_string_listJulian Phillips1-3/+3
2010-05-19notes: dry-run and verbose options for pruneMichael J Gruber1-2/+5
2010-03-24Merge branch 'tr/notes-display'Junio C Hamano1-7/+183
2010-03-20notes.c: remove inappropriate call to returnBrandon Casey1-1/+1
2010-03-12notes: track whether notes_trees were changed at allThomas Rast1-0/+3
2010-03-12notes: implement 'git notes copy --stdin'Thomas Rast1-0/+18
2010-03-12Support showing notes from more than one notes treeThomas Rast1-7/+162
2010-02-24notes: fix malformed tree entryJunio C Hamano1-2/+2
2010-02-13Notes API: prune_notes(): Prune notes that belong to non-existing objectsJohan Herland1-0/+39
2010-02-13Teach notes code to properly preserve non-notes in the notes treeJohan Herland1-39/+180
2010-02-13Refactor notes concatenation into a flexible interface for combining notesJohan Herland1-58/+80
2010-02-13Notes API: Allow multiple concurrent notes trees with new struct notes_treeJohan Herland1-34/+56
2010-02-13Notes API: write_notes_tree(): Store the notes tree in the databaseJohan Herland1-0/+145
2010-02-13Notes API: for_each_note(): Traverse the entire notes tree with a callbackJohan Herland1-0/+133
2010-02-13Notes API: get_note(): Return the note annotating the given objectJohan Herland1-7/+8
2010-02-13Notes API: remove_note(): Remove note objects from the notes tree structureJohan Herland1-1/+84
2010-02-13Notes API: add_note(): Add note objects to the internal notes tree structureJohan Herland1-0/+11
2010-02-13Notes API: init_notes(): Initialize the notes tree from the given notes refJohan Herland1-12/+18
2010-02-13Notes API: get_commit_notes() -> format_note() + remove the commit restrictionJohan Herland1-17/+16
2010-02-13Minor cosmetic fixes to notes.cJohan Herland1-5/+4
2009-12-03Fix crasher on encountering SHA1-like non-note in notes treeJohan Herland1-0/+2
2009-10-19Refactor notes code to concatenate multiple notes annotating the same objectJohan Herland1-82/+161
2009-10-19Teach the notes lookup code to parse notes trees with various fanout schemesJohan Herland1-69/+248
2009-10-19Teach notes code to free its internal data structures on requestJohan Herland1-0/+7
2009-10-19Add flags to get_commit_notes() to control the format of the note stringJohan Herland1-3/+5
2009-10-19Speed up git notes lookupJohannes Schindelin1-10/+102
2009-10-19Introduce commit notesJohannes Schindelin1-0/+70
2009-02-10Revert "Merge branch 'js/notes'"Junio C Hamano1-160/+0
2009-01-14git-notes: fix printing of multi-line notesTor Arne Vestbø1-6/+7
2009-01-11Speed up git notes lookupJohannes Schindelin1-11/+102
2008-12-21Introduce commit notesJohannes Schindelin1-0/+68