aboutsummaryrefslogtreecommitdiffstats
path: root/refs.c
AgeCommit message (Expand)AuthorFilesLines
2021-05-10Merge branch 'bc/hash-transition-interop-part-1'Junio C Hamano1-2/+2
2021-04-27hash: provide per-algorithm null OIDsbrian m. carlson1-2/+2
2021-04-13lookup_unknown_object(): take a repository argumentJeff King1-1/+1
2021-03-13use CALLOC_ARRAYRené Scharfe1-2/+2
2021-02-05Merge branch 'tb/ls-refs-optim'Junio C Hamano1-0/+87
2021-02-03Merge branch 'jk/peel-iterated-oid'Junio C Hamano1-23/+6
2021-01-22refs: expose 'for_each_fullref_in_prefixes'Taylor Blau1-0/+87
2021-01-21refs: switch peel_ref() to peel_iterated_oid()Jeff King1-23/+6
2021-01-11refs: allow @{n} to work with n-sized reflogDenton Liu1-14/+32
2021-01-10refs: factor out set_read_ref_cutoffs()Denton Liu1-17/+17
2020-12-13init: provide useful advice about init.defaultBranchJohannes Schindelin1-1/+17
2020-12-13get_default_branch_name(): prepare for showing some adviceJohannes Schindelin1-3/+3
2020-10-23tests: start moving to a different default main branch nameJohannes Schindelin1-1/+4
2020-09-22Merge branch 'hn/refs-trace-backend'Junio C Hamano1-0/+1
2020-09-09Merge branch 'jt/interpret-branch-name-fallback'Junio C Hamano1-10/+10
2020-09-09refs: add GIT_TRACE_REFS debugging mechanismHan-Wen Nienhuys1-0/+1
2020-09-02wt-status: tolerate dangling marksJonathan Tan1-5/+9
2020-09-02refs: move dwim_ref() to header fileJonathan Tan1-5/+0
2020-09-02sha1-name: replace unsigned int with option structJonathan Tan1-1/+2
2020-08-31Merge branch 'ps/ref-transaction-hook'Junio C Hamano1-9/+2
2020-08-31Merge branch 'hn/refs-pseudorefs'Junio C Hamano1-1/+1
2020-08-27Merge branch 'hn/refs-fetch-head-is-special'Junio C Hamano1-1/+27
2020-08-25refs: remove lookup cache for reference-transaction hookPatrick Steinhardt1-9/+2
2020-08-21refs: make refs_ref_exists publicHan-Wen Nienhuys1-1/+1
2020-08-19refs: read FETCH_HEAD and MERGE_HEAD genericallyHan-Wen Nienhuys1-1/+27
2020-08-17Merge branch 'hn/reftable-prep-part-2'Junio C Hamano1-117/+10
2020-08-17Merge branch 'ps/ref-transaction-hook'Junio C Hamano1-1/+1
2020-08-10Merge branch 'jk/strvec'Junio C Hamano1-4/+4
2020-08-07refs: fix interleaving hook calls with reference-transaction hookPatrick Steinhardt1-1/+1
2020-08-01Merge branch 'hn/reftable' into masterJunio C Hamano1-1/+0
2020-07-31refs: move the logic to add \t to reflog to the files backendHan-Wen Nienhuys1-1/+0
2020-07-30Merge branch 'hn/reftable' into masterJunio C Hamano1-9/+41
2020-07-28strvec: convert remaining callers away from argv_array nameJeff King1-3/+3
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-07-27Make HEAD a PSEUDOREF rather than PER_WORKTREE.Han-Wen Nienhuys1-4/+3
2020-07-27Modify pseudo refs through ref backend storageHan-Wen Nienhuys1-113/+7
2020-07-10reflog: cleanse messages in the refs.c layerJunio C Hamano1-9/+41
2020-07-06Merge branch 'js/default-branch-name'Junio C Hamano1-0/+30
2020-07-06Merge branch 'ak/commit-graph-to-slab'Junio C Hamano1-1/+1
2020-06-24init: allow setting the default for the initial branch name via the configDon Goodman-Wilson1-0/+30
2020-06-19refs: implement reference transaction hookPatrick Steinhardt1-2/+74
2020-06-17object: drop parsed_object_pool->commit_countAbhishek Kumar1-1/+1
2020-04-28Merge branch 'ds/log-exclude-decoration-config'Junio C Hamano1-44/+0
2020-04-22Merge branch 'jc/missing-ref-store-fix'Junio C Hamano1-4/+4
2020-04-16log-tree: make ref_filter_match() a helper methodDerrick Stolee1-44/+0
2020-04-09repository: mark the "refs" pointer as privateJeff King1-4/+4
2019-10-07hashmap_entry: remove first member requirement from docsEric Wong1-1/+1
2019-10-07hashmap_cmp_fn takes hashmap_entry paramsEric Wong1-3/+8
2019-10-07hashmap_get{,_from_hash} return "struct hashmap_entry *"Eric Wong1-1/+4
2019-10-07hashmap_put takes "struct hashmap_entry *"Eric Wong1-1/+4
2019-10-07hashmap_entry_init takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-06-20object: convert lookup_unknown_object() to use object_idJeff King1-1/+1
2019-06-13Merge branch 'nd/worktree-name-sanitization'Junio C Hamano1-20/+90
2019-05-15worktree add: sanitize worktree namesNguyễn Thái Ngọc Duy1-20/+90
2019-04-08refs.c: remove the_repo from read_ref_at()Nguyễn Thái Ngọc Duy1-3/+4
2019-04-08refs.c: add repo_dwim_log()Nguyễn Thái Ngọc Duy1-6/+15
2019-04-08refs.c: add repo_dwim_ref()Nguyễn Thái Ngọc Duy1-3/+9
2019-04-08refs.c: remove the_repo from expand_ref()Nguyễn Thái Ngọc Duy1-4/+6
2019-04-08refs.c: remove the_repo from substitute_branch_name()Nguyễn Thái Ngọc Duy1-4/+5
2019-04-08refs.c: add refs_shorten_unambiguous_ref()Nguyễn Thái Ngọc Duy1-2/+9
2019-04-08refs.c: add refs_ref_exists()Nguyễn Thái Ngọc Duy1-1/+6
2019-01-08convert has_sha1_file() callers to has_object_file()Jeff King1-1/+1
2018-11-18Merge branch 'ra/rev-parse-exclude-glob'Junio C Hamano1-0/+4
2018-11-13Merge branch 'nd/per-worktree-ref-iteration'Junio C Hamano1-1/+23
2018-11-13refs: fix some exclude patterns being ignoredRafael Ascensão1-0/+4
2018-10-22refs: new ref types to make per-worktree refs visible to all worktreesNguyễn Thái Ngọc Duy1-0/+21
2018-10-16Merge branch 'ds/commit-graph-with-grafts'Junio C Hamano1-7/+41
2018-10-07Add a place for (not) sharing stuff between worktreesNguyễn Thái Ngọc Duy1-0/+1
2018-10-07refs.c: indent with tabs, not spacesNguyễn Thái Ngọc Duy1-1/+1
2018-08-29convert "oidcmp() != 0" to "!oideq()"Jeff King1-4/+4
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