aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/notes.c
AgeCommit message (Expand)AuthorFilesLines
13 dayscocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-11/+15
2024-03-12strbuf: accept a comment string for strbuf_add_commented_lines()Jeff King1-4/+4
2024-03-12strbuf: accept a comment string for strbuf_stripspace()Jeff King1-2/+2
2024-02-14Merge branch 'js/check-null-from-read-object-file'Junio C Hamano1-2/+4
2024-02-06Always check the return value of `repo_read_object_file()`Johannes Schindelin1-2/+4
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-2/+0
2023-07-06Merge branch 'tl/notes-separator'Junio C Hamano1-33/+126
2023-07-06Merge branch 'cw/strbuf-cleanup'Junio C Hamano1-7/+9
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-2/+1
2023-06-21notes: introduce "--no-separator" optionTeng Long1-10/+27
2023-06-21notes.c: introduce "--[no-]stripspace" optionTeng Long1-8/+22
2023-06-21notes.c: append separator instead of insert by posTeng Long1-9/+12
2023-06-21notes.c: introduce '--separator=<paragraph-break>' optionTeng Long1-24/+85
2023-06-21notes.c: use designated initializers for clarityTeng Long1-2/+2
2023-06-21notes.c: cleanup 'strbuf_grow' call in 'append_edit'Teng Long1-2/+0
2023-06-12strbuf: remove global variableCalvin Wan1-7/+9
2023-04-11editor: move editor-related functions and declarations into common fileElijah Newren1-0/+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/+2
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-16/+18
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-16/+18
2023-03-28cocci: apply the "pretty.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+2
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-3/+4
2023-03-28cocci: apply the "commit.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-1/+1
2023-03-28cocci: apply the "cache.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-11/+11
2023-03-21write-or-die.h: move declarations for write-or-die.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-17Merge branch 'jk/unused-post-2.39-part2'Junio C Hamano1-2/+3
2023-02-24notes: mark unused callback parametersJeff King1-2/+3
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2022-11-16notes: avoid empty line in templateMichael J Gruber1-1/+1
2022-09-07notes, remote: show unknown subcommands between `'SZEDER Gábor1-1/+1
2022-09-07notes: simplify default operation mode arguments checkSZEDER Gábor1-4/+7
2022-08-19builtin/notes.c: let parse-options parse subcommandsSZEDER Gábor1-26/+17
2022-03-16Merge branch 'ab/object-file-api-updates'Junio C Hamano1-1/+1
2022-02-25object-file API: have write_object_file() take "enum object_type"Ævar Arnfjörð Bjarmason1-1/+1
2022-02-04i18n: remove from i18n strings that do not hold translatable partsJean-Noël Avila1-3/+3
2022-01-10Merge branch 'ab/usage-die-message'Junio C Hamano1-4/+5
2021-12-21Merge branch 'ak/protect-any-current-branch'Junio C Hamano1-1/+5
2021-12-07usage.c API users: use die_message() for error() + exit 128Ævar Arnfjörð Bjarmason1-4/+5
2021-12-01worktree: simplify find_shared_symref() memory ownership modelAnders Kaseorg1-1/+5
2021-11-25run-command API users: use strvec_pushl(), not argv constructionÆvar Arnfjörð Bjarmason1-3/+2
2021-08-25use xopen() to handle fatal open(2) failuresRené Scharfe1-3/+1
2021-03-13use CALLOC_ARRAYRené Scharfe1-1/+1
2021-02-23replace "parameters" by "arguments" in error messagesJohannes Sixt1-10/+10
2020-04-28Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu1-16/+16
2020-02-10strbuf: add and use strbuf_insertstr()René Scharfe1-2/+2
2019-10-18notes: fix minimum number of parameters to "copy" subcommandDoan Tran Cong Danh1-1/+1
2019-01-14notes-utils.c: remove the_repository referencesNguyễn Thái Ngọc Duy1-8/+13
2019-01-04Merge branch 'nd/the-index'Junio C Hamano1-1/+1
2018-11-18Merge branch 'cb/notes-freeing-always-null-fix'Junio C Hamano1-3/+1
2018-11-13builtin/notes: remove unnecessary freeCarlo Marcelo Arenas Belón1-3/+1
2018-11-12notes-merge.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-11-06assert NOARG/NONEG behavior of parse-options callbacksJeff King1-0/+7
2018-06-29commit: add repository argument to lookup_commit_referenceStefan Beller1-1/+2
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-06-01Merge branch 'nd/use-opt-int-set-f'Junio C Hamano1-6/+6
2018-05-24Use OPT_SET_INT_F() for cmdline option specificationNguyễn Thái Ngọc Duy1-6/+6
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-4/+4
2018-04-11exec_cmd: rename to use dash in file nameStefan Beller1-1/+1
2018-04-10Merge branch 'bc/object-id'Junio C Hamano1-7/+7
2018-03-14Merge branch 'nd/parseopt-completion'Junio C Hamano1-2/+2
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-3/+3
2018-03-14builtin/notes: convert static functions to object_idbrian m. carlson1-5/+5
2018-02-09completion: use __gitcomp_builtin in _git_notesNguyễn Thái Ngọc Duy1-2/+2
2018-02-09parse-options: let OPT__FORCE take optional flags argumentNguyễn Thái Ngọc Duy1-2/+2
2018-01-30sha1_file: convert write_sha1_file to object_idPatryk Obara1-4/+4
2017-12-27Merge branch 'ot/pretty'Junio C Hamano1-1/+1
2017-12-12format: create pretty.h fileOlga Telezhnaya1-1/+1
2017-12-06Merge branch 'rd/doc-notes-prune-fix'Junio C Hamano1-1/+1
2017-12-06Merge branch 'tz/notes-error-to-stderr' into maintJunio C Hamano1-4/+4
2017-11-27Merge branch 'tz/notes-error-to-stderr'Junio C Hamano1-4/+4
2017-11-22notes: correct 'git notes prune' options to '[-n] [-v]'Robert P. J. Day1-1/+1
2017-11-15notes: send "Automatic notes merge failed" messages to stderrTodd Zullinger1-4/+4
2017-11-06refs: rename constant `REF_NODEREF` to `REF_NO_DEREF`Michael Haggerty1-1/+1
2017-10-16refs: convert resolve_refdup and refs_resolve_refdup to struct object_idbrian m. carlson1-1/+1
2017-10-16refs: convert update_ref and refs_update_ref to use struct object_idbrian m. carlson1-5/+5
2017-09-07notes: release strbuf after use in notes_copy_from_stdin()Rene Scharfe1-0/+1
2017-08-11Merge branch 'bw/object-id'Junio C Hamano1-1/+1
2017-07-17notes: don't access hash of NULL object_id pointerRené Scharfe1-1/+1
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-19Merge branch 'bw/object-id'Junio C Hamano1-68/+68
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-05notes-merge: convert notes_merge* to struct object_idBrandon Williams1-3/+3
2017-06-04Merge branch 'ab/c-translators-comment-style'Junio C Hamano1-2/+4
2017-06-02notes: convert some accessor functions to struct object_idbrian m. carlson1-10/+10
2017-06-02builtin/notes: convert to struct object_idbrian m. carlson1-55/+55
2017-06-02notes: make get_note return pointer to struct object_idbrian m. carlson1-11/+11
2017-06-02notes: convert for_each_note to struct object_idbrian m. carlson1-3/+3
2017-05-31C style: use standard style for "TRANSLATORS" commentsÆvar Arnfjörð Bjarmason1-2/+4
2017-05-08Convert lookup_commit* to struct object_idbrian m. carlson1-1/+1
2017-03-30replace unchecked snprintf calls with heap buffersJeff King1-5/+4
2017-03-17Merge branch 'bc/object-id'Junio C Hamano1-9/+9
2017-02-22Convert remaining callers of resolve_refdup to object_idbrian m. carlson1-9/+9
2017-02-20delete_ref: accept a reflog message argumentKyle Meyer1-2/+2
2016-09-15notes: spell first word of error messages in lowercaseVasco Almeida1-32/+32
2016-09-15i18n: notes: mark error messages for translationVasco Almeida1-9/+11
2016-07-28i18n: notes: mark comment for translationVasco Almeida1-2/+3
2016-06-17i18n: notes: mark options for translationVasco Almeida1-2/+2
2016-06-17i18n: notes: mark strings for translationVasco Almeida1-10/+10
2016-04-22worktree.c: make find_shared_symref() return struct worktree *Nguyễn Thái Ngọc Duy1-4/+4
2016-04-13Merge branch 'sb/misc-cleanups'Junio C Hamano1-2/+3
2016-04-01notes: don't leak memory in git_config_get_notes_strategyStefan Beller1-2/+3
2016-02-03Merge branch 'jk/notes-merge-from-anywhere'Junio C Hamano1-1/+1
2016-01-28Merge branch 'jc/strbuf-getline'Junio C Hamano1-1/+1
2016-01-17notes: allow merging from arbitrary referencesJacob Keller1-1/+1
2016-01-15strbuf: introduce strbuf_getline_{lf,nul}()Junio C Hamano1-1/+1
2016-01-12notes: allow treeish expressions as notes refMike Hommey1-13/+16
2015-11-20Remove get_object_hash.brian m. carlson1-1/+1
2015-11-20Add several uses of get_object_hash.brian m. carlson1-1/+1
2015-10-26Merge branch 'tk/stripspace'Junio C Hamano1-3/+3
2015-10-16strbuf: make stripspace() part of strbufTobias Klauser1-3/+3
2015-10-02worktree: add top-level worktree.cMichael Rappazzo1-1/+1
2015-08-31Merge branch 'jk/notes-merge-config'Junio C Hamano1-13/+30
2015-08-25Merge branch 'dt/notes-multiple'Junio C Hamano1-0/+6
2015-08-17notes: teach git-notes about notes.<name>.mergeStrategy optionJacob Keller1-1/+13
2015-08-17notes: add notes.mergeStrategy option to select default strategyJacob Keller1-2/+17
2015-08-17notes: extract parse_notes_merge_strategy to notes-utilsJacob Keller1-11/+1
2015-08-11notes: handle multiple worktreesDavid Turner1-0/+6
2015-01-14standardize usage info string formatAlex Henrie1-12/+12
2014-11-12builtin/notes: add --allow-empty, to allow storing empty notesJohan Herland1-6/+11
2014-11-12builtin/notes: split create_note() to clarify add vs. remove logicJohan Herland1-49/+54
2014-11-12builtin/notes: simplify early exit code in add()Johan Herland1-18/+17
2014-11-10builtin/notes: refactor note file path into struct note_dataJohan Herland1-17/+21
2014-11-10builtin/notes: improve namingJohan Herland1-55/+54
2014-11-10builtin/notes: fix premature failure when trying to add the empty blobJohan Herland1-1/+1
2014-10-15refs.c: change resolve_ref_unsafe reading argument to be a flags fieldRonnie Sahlberg1-1/+1
2014-09-19Merge branch 'ah/grammofix'Junio C Hamano1-1/+1
2014-09-02grammofix in user-facing messagesAlex Henrie1-1/+1
2014-08-20run-command: introduce CHILD_PROCESS_INITRené Scharfe1-2/+1
2014-06-03Merge branch 'mh/ref-transaction'Junio C Hamano1-3/+3
2014-04-07refs.h: rename the action_on_err constantsMichael Haggerty1-3/+3
2014-03-24parse-options: multi-word argh should use dash to separate wordsJunio C Hamano1-1/+1
2014-03-14Merge branch 'jh/note-trees-record-blobs'Junio C Hamano1-1/+5
2014-02-20notes: disallow reusing non-blob as a note objectJohan Herland1-1/+5
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-1/+1
2013-08-05Replace deprecated OPT_BOOLEAN by OPT_BOOLStefan Beller1-2/+2
2013-08-05Remove deprecated OPTION_BOOLEAN for parsing argumentsStefan Beller1-4/+4
2013-06-26Merge branch 'ph/builtin-srcs-are-in-subdir-these-days'Junio C Hamano1-1/+1
2013-06-18fix "builtin-*" references to be "builtin/*"Phil Hord1-1/+1
2013-06-12Move copy_note_for_rewrite + friends from builtin/notes.c to notes-utils.cJohan Herland1-130/+1
2013-06-12finish_copy_notes_for_rewrite(): Let caller provide commit messageJohan Herland1-4/+5
2013-01-16Allow custom "comment char"Junio C Hamano1-19/+15
2012-09-15builtin/notes.c: mark file-scope private symbols as staticJunio C Hamano1-2/+5
2012-08-22Reduce translations by using same terminologiesNguyễn Thái Ngọc Duy1-2/+2
2012-08-20i18n: notes: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-60/+60
2011-12-22Merge branch 'nd/war-on-nul-in-commit'Junio C Hamano1-2/+2
2011-12-15Convert commit_tree() to take strbuf as messageNguyễn Thái Ngọc Duy1-2/+2
2011-12-13Convert resolve_ref+xstrdup to new resolve_refdup functionNguyễn Thái Ngọc Duy1-3/+4
2011-12-05Copy resolve_ref() return value for longer useNguyễn Thái Ngọc Duy1-1/+5
2011-05-19notes remove: --stdin reads from the standard inputJunio C Hamano1-4/+15
2011-05-19notes remove: --ignore-missingJunio C Hamano1-4/+10
2011-05-19notes remove: allow removing more than oneJunio C Hamano1-22/+25
2011-05-02Merge branch 'jk/notes-ui-updates'Junio C Hamano1-10/+0
2011-05-02Merge branch 'jh/notes-add-ui'Junio C Hamano1-3/+17
2011-04-01Merge branch 'ab/i18n-st'Junio C Hamano1-55/+57
2011-03-30Make "git notes add" more user-friendly when there are existing notesJohan Herland1-3/+17
2011-03-29notes: make expand_notes_ref globally accessibleJeff King1-10/+0
2011-03-22Fix sparse warningsStephen Boyd1-2/+2
2011-03-09i18n: git-notes GIT_NOTES_REWRITE_MODE error messageÆvar Arnfjörð Bjarmason1-2/+4
2011-03-09i18n: git-notes basic commandsÆvar Arnfjörð Bjarmason1-53/+53
2011-02-15Make <identifier> lowercase as per CodingGuidelinesMichael J Gruber1-8/+8
2010-12-08Merge branch 'jh/notes-merge'Junio C Hamano1-34/+234
2010-11-17Provide 'git notes get-ref' to easily retrieve current notes refJohan Herland1-0/+23
2010-11-17git notes merge: Add another auto-resolving strategy: "cat_sort_uniq"Johan Herland1-2/+6
2010-11-17git notes merge: --commit should fail if underlying notes ref has movedJohan Herland1-2/+9
2010-11-17git notes merge: List conflicting notes in notes merge commit messageJohan Herland1-1/+1
2010-11-17git notes merge: Manual conflict resolution, part 2/2Johan Herland1-3/+103
2010-11-17git notes merge: Manual conflict resolution, part 1/2Johan Herland1-4/+4
2010-11-17git notes merge: Add automatic conflict resolvers (ours, theirs, union)Johan Herland1-1/+20
2010-11-17git notes merge: Handle real, non-conflicting notes mergesJohan Herland1-5/+10
2010-11-17builtin/notes.c: Refactor creation of notes commits.Johan Herland1-23/+5
2010-11-17git notes merge: Initial implementation handling trivial merges onlyJohan Herland1-0/+54
2010-11-17builtin/notes.c: Split notes ref DWIMmery into a separate functionJohan Herland1-6/+11
2010-11-17notes.h/c: Propagate combine_notes_fn return value to add_note() and beyondJohan Herland1-5/+6
2010-11-15add OPT__FORCERené Scharfe1-2/+2
2010-11-15add description parameter to OPT__DRY_RUNRené Scharfe1-2/+1
2010-11-15add description parameter to OPT__VERBOSERené Scharfe1-1/+1
2010-08-31notes: Don't create (empty) commit when removing non-existing notesJohan Herland1-4/+10
2010-08-09notes: allow --dry-run for -n and --verbose for -vRené Scharfe1-2/+3
2010-06-28Merge branch 'maint'Junio C Hamano1-0/+4
2010-06-28notes: check number of parameters to "git notes copy"Jeff King1-0/+4
2010-06-25Merge branch 'maint'Junio C Hamano1-1/+1
2010-06-24msvc: Fix some "expr evaluates to function" compiler warningsRamsay Jones1-1/+1
2010-06-16Merge 'maint' updates inJunio C Hamano1-1/+1
2010-06-15notes: Initialize variable to appease Sun StudioÆvar Arnfjörð Bjarmason1-1/+1
2010-05-19notes: dry-run and verbose options for pruneMichael J Gruber1-4/+9
2010-03-28Merge branch 'sb/notes-parse-opt'Junio C Hamano1-159/+371
2010-03-24Merge branch 'tr/notes-display'Junio C Hamano1-1/+196
2010-03-15Merge branch 'jh/notes'Junio C Hamano1-0/+455