aboutsummaryrefslogtreecommitdiffstats
path: root/refs.c
AgeCommit message (Expand)AuthorFilesLines
2018-08-21refs.c: upgrade for_each_replace_ref to be a each_repo_ref_fn callbackStefan Beller1-5/+4
2018-08-21refs.c: migrate internal ref iteration to pass thru repository argumentStefan Beller1-2/+37
2018-08-17Merge branch 'jt/refspec-dwim-precedence-fix'Junio C Hamano1-5/+13
2018-08-15Merge branch 'nd/i18n'Junio C Hamano1-20/+20
2018-08-02Merge branch 'sb/object-store-lookup'Junio C Hamano1-1/+1
2018-08-02remote: make refspec follow the same disambiguation rule as local refsJunio C Hamano1-5/+13
2018-07-24Merge branch 'bp/log-ref-write-fd-with-strbuf'Junio C Hamano1-8/+4
2018-07-23refs.c: mark more strings for translationNguyễn Thái Ngọc Duy1-20/+20
2018-07-23Update messages in preparation for i18nNguyễn Thái Ngọc Duy1-6/+6
2018-07-18Merge branch 'sb/object-store-grafts'Junio C Hamano1-0/+1
2018-07-10convert log_ref_write_fd() to use strbufBen Peart1-8/+4
2018-06-29object: add repository argument to object_as_typeStefan Beller1-1/+1
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-05-30Merge branch 'jk/snprintf-truncation'Junio C Hamano1-2/+2
2018-05-30Merge branch 'ma/create-pseudoref-with-null-old-oid'Junio C Hamano1-5/+17
2018-05-30Merge branch 'js/use-bug-macro'Junio C Hamano1-17/+17
2018-05-30Merge branch 'ma/lockfile-cleanup'Junio C Hamano1-7/+9
2018-05-23Merge branch 'js/rebase-recreate-merge'Junio C Hamano1-1/+2
2018-05-23Merge branch 'sb/oid-object-info'Junio C Hamano1-1/+1
2018-05-23Merge branch 'sb/object-store-replace'Junio C Hamano1-0/+3
2018-05-21shorten_unambiguous_ref: use xsnprintfJeff King1-2/+2
2018-05-21get_main_ref_store: BUG() when outside a repositoryJeff King1-0/+3
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-13refs: handle zero oid for pseudorefsMartin Ågren1-3/+13
2018-05-13refs.c: refer to "object ID", not "sha1", in error messagesMartin Ågren1-2/+4
2018-05-10refs.c: do not die if locking fails in `delete_pseudoref()`Martin Ågren1-4/+7
2018-05-10refs.c: do not die if locking fails in `write_pseudoref()`Martin Ågren1-3/+2
2018-05-08Merge branch 'sb/object-store-replace'Junio C Hamano1-41/+39
2018-05-08Merge branch 'bw/protocol-v2'Junio C Hamano1-0/+14
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-17/+17
2018-04-26sequencer: make refs generated by the `label` command worktree-localJohannes Schindelin1-1/+2
2018-04-26cache.h: add repository argument to oid_object_infoStefan Beller1-1/+1
2018-04-12refs: allow for_each_replace_ref to handle arbitrary repositoriesStefan Beller1-2/+2
2018-04-12refs: store the main ref store inside the repository structStefan Beller1-8/+5
2018-04-12refs: add repository argument to for_each_replace_refStefan Beller1-1/+1
2018-04-12refs: add repository argument to get_main_ref_storeStefan Beller1-33/+34
2018-03-15ls-remote: pass ref prefixes when requesting a remote's refsBrandon Williams1-0/+14
2018-03-14sha1_file: convert sha1_object_info* to object_idbrian m. carlson1-1/+1
2017-11-22log: add option to choose which refs to decorateRafael Ascensão1-0/+65
2017-11-06refs: update some more docs to use "oid" rather than "sha1"Michael Haggerty1-1/+1
2017-11-06ref_transaction_add_update(): remove a checkMichael Haggerty1-3/+0
2017-11-06ref_transaction_update(): die on disallowed flagsMichael Haggerty1-1/+2
2017-10-16refs: convert read_raw_ref backends to struct object_idbrian m. carlson1-4/+4
2017-10-16refs: convert peel_object to struct object_idbrian m. carlson1-5/+5
2017-10-16refs: convert resolve_ref_unsafe to struct object_idbrian m. carlson1-15/+14
2017-10-16refs: convert resolve_gitlink_ref to struct object_idbrian m. carlson1-3/+3
2017-10-16refs: convert reflog_expire parameter to struct object_idbrian m. carlson1-4/+4
2017-10-16refs: convert read_ref_at to struct object_idbrian m. carlson1-17/+17
2017-10-16refs: convert peel_ref to struct object_idbrian m. carlson1-5/+5
2017-10-16refs: convert dwim_log to struct object_idbrian m. carlson1-4/+4
2017-10-16refs: convert dwim_ref and expand_ref to struct object_idbrian m. carlson1-7/+8
2017-10-16refs: convert read_ref and read_ref_full to object_idbrian m. carlson1-13/+13
2017-10-16refs: convert resolve_refdup and refs_resolve_refdup to struct object_idbrian m. carlson1-4/+4
2017-10-16refs: update ref transactions to use struct object_idbrian m. carlson1-26/+24
2017-10-16refs: prevent accidental NULL dereference in write_pseudorefbrian m. carlson1-0/+3
2017-10-16refs: convert update_ref and refs_update_ref to use struct object_idbrian m. carlson1-23/+16
2017-10-16refs: convert delete_ref and refs_delete_ref to struct object_idbrian m. carlson1-10/+11
2017-10-07refs_resolve_ref_unsafe: handle d/f conflicts for writesJeff King1-1/+14
2017-10-03Merge branch 'mh/mmap-packed-refs'Junio C Hamano1-1/+21
2017-10-03Merge branch 'sd/branch-copy'Junio C Hamano1-0/+11
2017-09-28Merge branch 'rs/resolve-ref-optional-result'Junio C Hamano1-4/+5
2017-09-25ref_store: implement `refs_peel_ref()` genericallyMichael Haggerty1-1/+17
2017-09-25Merge branch 'tg/refs-allowed-flags'Junio C Hamano1-0/+2
2017-09-25Merge branch 'jn/per-repo-object-store-fixes'Junio C Hamano1-1/+1
2017-09-25Merge branch 'jk/write-in-full-fix'Junio C Hamano1-1/+1
2017-09-24refs: pass NULL to resolve_ref_unsafe() if hash is not neededRené Scharfe1-4/+2
2017-09-24refs: make sha1 output parameter of refs_resolve_ref_unsafe() optionalRené Scharfe1-0/+3
2017-09-19Merge branch 'rs/strbuf-leakfix'Junio C Hamano1-1/+1
2017-09-19Merge branch 'nd/prune-in-worktree'Junio C Hamano1-79/+31
2017-09-14ref_iterator: keep track of whether the iterator output is orderedMichael Haggerty1-0/+4
2017-09-14avoid "write_in_full(fd, buf, len) != len" patternJeff King1-1/+1
2017-09-14replace-objects: evaluate replacement refs without using the object storeStefan Beller1-1/+1
2017-09-14refs: strip out not allowed flags from ref_transaction_updateThomas Gummerer1-0/+2
2017-09-07refs: release strbuf on error return in write_pseudoref()Rene Scharfe1-1/+1
2017-08-26Merge branch 'mh/ref-lock-entry'Junio C Hamano1-3/+21
2017-08-24refs.c: reindent get_submodule_ref_store()Nguyễn Thái Ngọc Duy1-7/+5
2017-08-24refs.c: remove fallback-to-main-store code get_submodule_ref_store()Nguyễn Thái Ngọc Duy1-8/+3
2017-08-24refs: remove dead for_each_*_submodule()Nguyễn Thái Ngọc Duy1-33/+0
2017-08-24refs.c: move for_each_remote_ref_submodule() to submodule.cNguyễn Thái Ngọc Duy1-6/+0
2017-08-24revision.c: use refs_for_each*() instead of for_each_*_submodule()Nguyễn Thái Ngọc Duy1-5/+4
2017-08-24refs: add refs_head_ref()Nguyễn Thái Ngọc Duy1-10/+13
2017-08-24refs: move submodule slash stripping code to get_submodule_ref_storeNguyễn Thái Ngọc Duy1-16/+17
2017-08-24refs.c: refactor get_submodule_ref_store(), share common free blockNguyễn Thái Ngọc Duy1-11/+6
2017-08-24refs.c: use is_dir_sep() in resolve_gitlink_ref()Nguyễn Thái Ngọc Duy1-1/+1
2017-08-23Merge branch 'cc/ref-is-hidden-microcleanup' into maintJunio C Hamano1-5/+4
2017-08-23refs: retry acquiring reference locks for 100msMichael Haggerty1-3/+21
2017-08-22Merge branch 'mh/packed-ref-store'Junio C Hamano1-0/+18
2017-08-11Merge branch 'cc/ref-is-hidden-microcleanup'Junio C Hamano1-5/+4
2017-08-11Merge branch 'bc/object-id'Junio C Hamano1-1/+1
2017-07-24refs: use skip_prefix() in ref_is_hidden()Christian Couder1-5/+4
2017-07-17sha1_name: convert GET_SHA1* flags to GET_OID*brian m. carlson1-1/+1
2017-07-13Merge branch 'sb/hashmap-customize-comparison'Junio C Hamano1-2/+3
2017-07-10Merge branch 'ab/wildmatch'Junio C Hamano1-1/+1
2017-06-30hashmap.h: compare function has access to a data fieldStefan Beller1-2/+3
2017-06-26Merge branch 'mh/packed-ref-store-prep'Junio C Hamano1-0/+12
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-23wildmatch: remove unused wildopts parameterÆvar Arnfjörð Bjarmason1-1/+1
2017-06-23packed-backend: new module for handling packed referencesMichael Haggerty1-0/+18
2017-06-18for_each_bisect_ref(): don't trim refnamesMichael Haggerty1-0/+12
2017-06-18branch: add a --copy (-c) option to go with --move (-m)Sahil Dua1-0/+11
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-05-23refs_ref_iterator_begin(): handle `GIT_REF_PARANOIA`Michael Haggerty1-0/+5
2017-05-23ref_update_reject_duplicates(): add a sanity checkMichael Haggerty1-2/+8
2017-05-23ref_update_reject_duplicates(): use `size_t` rather than `int`Michael Haggerty1-1/+1
2017-05-23ref_update_reject_duplicates(): expose function to whole refs moduleMichael Haggerty1-0/+17
2017-05-23ref_transaction_prepare(): new optional step for reference updatesMichael Haggerty1-3/+71
2017-05-23ref_transaction_commit(): check for valid `transaction->state`Michael Haggerty1-0/+12
2017-05-23ref_store: take a `msg` parameter when deleting referencesMichael Haggerty1-5/+6
2017-05-23refs: use `size_t` indexes when iterating over ref transaction updatesMichael Haggerty1-1/+1
2017-05-23refs_ref_iterator_begin(): don't check prefixes redundantlyMichael Haggerty1-1/+7
2017-05-23Merge branch 'bc/object-id'Junio C Hamano1-2/+2
2017-05-16Merge branch 'js/larger-timestamps'Junio C Hamano1-7/+7
2017-05-16Merge branch 'nd/worktree-kill-parse-ref'Junio C Hamano1-37/+63
2017-05-08refs: convert struct ref_update to use struct object_idbrian m. carlson1-2/+2
2017-04-27timestamp_t: a new data type for timestampsJohannes Schindelin1-7/+7
2017-04-26Merge branch 'mh/separate-ref-cache'Junio C Hamano1-6/+105
2017-04-24refs: introduce get_worktree_ref_store()Nguyễn Thái Ngọc Duy1-0/+30
2017-04-24refs: add REFS_STORE_ALL_CAPSNguyễn Thái Ngọc Duy1-5/+1
2017-04-23Merge branch 'jk/quarantine-received-objects'Junio C Hamano1-0/+6
2017-04-19Merge branch 'nd/files-backend-git-dir'Junio C Hamano1-128/+293
2017-04-16refs_verify_refname_available(): implement once for all backendsMichael Haggerty1-2/+83
2017-04-16refs.c: make submodule ref store hashmap genericNguyễn Thái Ngọc Duy1-32/+32
2017-04-16refs: reject ref updates while GIT_QUARANTINE_PATH is setJeff King1-0/+6
2017-04-14refs_ref_iterator_begin(): new functionMichael Haggerty1-2/+13
2017-04-14refs_read_raw_ref(): new functionMichael Haggerty1-2/+9
2017-04-14refs: delete pack_refs() in favor of refs_pack_refs()Nguyễn Thái Ngọc Duy1-5/+0
2017-04-14refs: new transaction related ref-store apiNguyễn Thái Ngọc Duy1-12/+43
2017-04-14refs: add new ref-store apiNguyễn Thái Ngọc Duy1-65/+186
2017-04-14refs: rename get_ref_store() to get_submodule_ref_store() and make it publicNguyễn Thái Ngọc Duy1-4/+8
2017-04-14files-backend: replace submodule_allowed check in files_downcast()Nguyễn Thái Ngọc Duy1-4/+11
2017-03-30avoid using mksnpath for refsJeff King1-18/+26
2017-03-28Merge branch 'sg/skip-prefix-in-prettify-refname'Junio C Hamano1-5/+5
2017-03-28Merge branch 'jk/interpret-branch-name' into maintJunio C Hamano1-1/+1
2017-03-28Merge branch 'jk/parse-config-key-cleanup' into maintJunio C Hamano1-3/+3
2017-03-27refs: move submodule code out of files-backend.cNguyễn Thái Ngọc Duy1-5/+14
2017-03-27refs.c: make get_main_ref_store() public and use itNguyễn Thái Ngọc Duy1-18/+18
2017-03-27refs.c: kill register_ref_store(), add register_submodule_ref_store()Nguyễn Thái Ngọc Duy1-25/+20
2017-03-27refs.c: flatten get_ref_store() a bitNguyễn Thái Ngọc Duy1-10/+13
2017-03-27refs: rename lookup_ref_store() to lookup_submodule_ref_store()Nguyễn Thái Ngọc Duy1-9/+4
2017-03-27refs.c: introduce get_main_ref_store()Nguyễn Thái Ngọc Duy1-4/+9
2017-03-23refs.c: use skip_prefix() in prettify_refname()SZEDER Gábor1-5/+5
2017-03-17Merge branch 'bc/object-id'Junio C Hamano1-12/+12
2017-03-14Merge branch 'jk/interpret-branch-name'Junio C Hamano1-1/+1
2017-03-10Merge branch 'jk/parse-config-key-cleanup'Junio C Hamano1-4/+3
2017-03-10Merge branch 'sb/parse-hide-refs-config-cleanup'Junio C Hamano1-3/+4
2017-03-02interpret_branch_name: allow callers to restrict expansionsJeff King1-1/+1
2017-02-27Merge branch 'km/delete-ref-reflog-message'Junio C Hamano1-3/+3
2017-02-27Merge branch 'mh/submodule-hash'Junio C Hamano1-40/+81
2017-02-24parse_hide_refs_config: tell parse_config_key we don't want a subsectionJeff King1-4/+3
2017-02-24refs: parse_hide_refs_config to use parse_config_keyStefan Beller1-3/+4
2017-02-22refs: convert each_reflog_ent_fn to struct object_idbrian m. carlson1-12/+12
2017-02-20delete_ref: accept a reflog message argumentKyle Meyer1-3/+3
2017-02-13read_loose_refs(): read refs using resolve_ref_recursively()Michael Haggerty1-4/+4
2017-02-10base_ref_store_init(): remove submodule argumentMichael Haggerty1-2/+1
2017-02-10refs: push the submodule attribute downMichael Haggerty1-11/+0
2017-02-10refs: store submodule ref stores in a hashmapMichael Haggerty1-13/+45
2017-02-10register_ref_store(): new functionMichael Haggerty1-14/+29
2017-02-10refs: remove some unnecessary handling of submodule == ""Michael Haggerty1-11/+2
2017-02-10refs: make some ref_store lookup functions privateMichael Haggerty1-2/+17
2017-02-10refs: reorder some function definitionsMichael Haggerty1-32/+32
2017-01-31refs: add option core.logAllRefUpdates = alwaysCornelius Weig1-5/+10
2016-10-26Merge branch 'jc/cocci-xstrdup-or-null'Junio C Hamano1-2/+1
2016-10-12cocci: refactor common patterns to use xstrdup_or_null()Junio C Hamano1-2/+1
2016-10-10Merge branch 'nd/shallow-deepen'Junio C Hamano1-1/+7
2016-09-19Merge branch 'bc/object-id'Junio C Hamano1-0/+8
2016-09-19Merge branch 'mh/ref-store'Junio C Hamano1-10/+299
2016-09-09refs: add method to rename refsDavid Turner1-0/+7
2016-09-09refs: add methods to init refs dbDavid Turner1-0/+8
2016-09-09refs: make delete_refs() virtualDavid Turner1-0/+7
2016-09-09refs: add method for initial ref transaction commitDavid Turner1-0/+8
2016-09-09refs: add methods for reflogDavid Turner1-0/+63
2016-09-09refs: add method iterator_beginMichael Haggerty1-1/+1
2016-09-09files_ref_iterator_begin(): take a ref_store argumentMichael Haggerty1-1/+1
2016-09-09refs: make peel_ref() virtualMichael Haggerty1-0/+7
2016-09-09refs: make create_symref() virtualMichael Haggerty1-0/+9
2016-09-09refs: make pack_refs() virtualMichael Haggerty1-0/+7
2016-09-09refs: make verify_refname_available() virtualMichael Haggerty1-0/+10
2016-09-09refs: make read_raw_ref() virtualMichael Haggerty1-2/+2
2016-09-09resolve_gitlink_ref(): rename path parameter to submoduleMichael Haggerty1-6/+7
2016-09-09resolve_gitlink_ref(): avoid memory allocation in many casesMichael Haggerty1-6/+13
2016-09-09resolve_gitlink_ref(): implement using resolve_ref_recursively()Michael Haggerty1-0/+24
2016-09-09resolve_ref_recursively(): new functionMichael Haggerty1-3/+11
2016-09-09read_raw_ref(): take a (struct ref_store *) argumentMichael Haggerty1-1/+3
2016-09-09refs: add a transaction_commit() methodRonnie Sahlberg1-0/+9
2016-09-09refs: create a base class "ref_store" for files_ref_storeMichael Haggerty1-0/+93
2016-09-09refs: add a backend method structureRonnie Sahlberg1-0/+19
2016-09-09rename_ref_available(): add docstringDavid Turner1-6/+6
2016-09-07refs: add an update_ref_oid function.brian m. carlson1-0/+8
2016-08-01pass constants as first argument to st_mult()René Scharfe1-1/+1
2016-06-20do_for_each_ref(): reimplement using reference iterationMichael Haggerty1-0/+20
2016-06-13refs: add expand_ref()Nguyễn Thái Ngọc Duy1-1/+7
2016-06-13ref_transaction_update(): check refname_is_safe() at a minimumMichael Haggerty1-2/+3
2016-06-13add_update(): initialize the whole ref_updateMichael Haggerty1-22/+26
2016-06-13ref_transaction_create(): disallow recursive pruningMichael Haggerty1-0/+3
2016-06-13refs: make error messages more consistentMichael Haggerty1-4/+4
2016-05-05refname_is_safe(): insist that the refname already be normalizedMichael Haggerty1-2/+7
2016-05-05refname_is_safe(): don't allow the empty stringMichael Haggerty1-2/+3
2016-05-05refname_is_safe(): use skip_prefix()Michael Haggerty1-3/+5
2016-04-10refs: move resolve_ref_unsafe into common codeDavid Turner1-0/+74
2016-04-10refs: move for_each_*ref* functions into common codeDavid Turner1-0/+52