aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/describe.c
AgeCommit message (Expand)AuthorFilesLines
2025-11-04refs: expose peeled object ID via the iteratorPatrick Steinhardt1-1/+1
2025-11-04refs: introduce wrapper struct for `each_ref_fn`Patrick Steinhardt1-9/+9
2025-09-29Merge branch 'jk/setup-revisions-freefix'Junio C Hamano1-1/+2
2025-09-22treewide: use setup_revisions_from_strvec() when we have a strvecJeff King1-1/+2
2025-09-12Merge branch 'rs/describe-with-lazy-queue-and-oidset'Junio C Hamano1-12/+22
2025-09-02describe: use oidset in finish_depth_computation()René Scharfe1-12/+22
2025-08-29Merge branch 'jk/describe-blob'Junio C Hamano1-16/+25
2025-08-21Merge branch 'rs/describe-with-prio-queue'Junio C Hamano1-24/+63
2025-08-20describe: pass commit to describe_commit()Jeff King1-11/+9
2025-08-20describe: handle blob traversal with no commitsJeff King1-2/+4
2025-08-18describe: catch unborn branch in describe_blob()Jeff King1-1/+7
2025-08-18describe: error if blob not foundJeff King1-0/+3
2025-08-18describe: pass oid struct by const pointerJeff King1-4/+4
2025-08-03describe: use prio_queue_replace()René Scharfe1-16/+52
2025-08-03describe: use prio_queueRené Scharfe1-24/+27
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-1/+1
2025-07-01odb: rename `oid_object_info()`Patrick Steinhardt1-1/+2
2025-07-01object-store: rename files to "odb.{c,h}"Patrick Steinhardt1-1/+1
2025-04-24Merge branch 'ps/parse-options-integers'Junio C Hamano1-6/+18
2025-04-17global: use designated initializers for optionsPatrick Steinhardt1-6/+18
2025-04-15object-store: merge "object-store-ll.h" and "object-store.h"Patrick Steinhardt1-1/+1
2025-03-10hash: stop depending on `the_repository` in `null_oid()`Patrick Steinhardt1-1/+1
2024-12-23Merge branch 'ps/build-sign-compare'Junio C Hamano1-0/+2
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+2
2024-12-06describe: split "found all tags" and max_candidates logicJeff King1-3/+2
2024-11-07describe: stop traversing when we run out of namesJeff King1-0/+2
2024-11-07describe: stop digging for max_candidates+1Jeff King1-7/+8
2024-09-23Merge branch 'jc/pass-repo-to-builtins'Junio C Hamano1-2/+6
2024-09-16Merge branch 'jc/range-diff-lazy-setup'Junio C Hamano1-1/+1
2024-09-13builtin: remove USE_THE_REPOSITORY_VARIABLE from builtin.hJohn Cai1-0/+1
2024-09-13builtin: add a repository parameter for builtin functionsJohn Cai1-2/+5
2024-08-15Merge branch 'jc/refs-symref-referent'Junio C Hamano1-1/+1
2024-08-09remerge-diff: clean up temporary objdir at a central placeJunio C Hamano1-1/+1
2024-08-09refs: add referent to each_ref_fnJohn Cai1-1/+1
2024-08-01builtin/describe: fix trivial memory leak when describing blobPatrick Steinhardt1-0/+1
2024-08-01builtin/describe: fix leaking array when running diff-indexPatrick Steinhardt1-3/+3
2024-08-01builtin/describe: fix memory leak with `--contains=`Patrick Steinhardt1-1/+17
2024-07-15Merge branch 'as/describe-broken-refresh-index-fix'Junio C Hamano1-0/+12
2024-06-26describe: refresh the index when 'broken' flag is usedAbhijeet Sonar1-0/+12
2024-05-17refs: pass repo when peeling objectsPatrick Steinhardt1-1/+1
2024-05-16Merge branch 'ps/refs-without-the-repository' into ps/refs-without-the-reposi...Junio C Hamano1-1/+2
2024-05-07cocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-1/+2
2024-04-18builtin: stop using `the_index`Patrick Steinhardt1-2/+1
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-2/+0
2023-09-13Merge branch 'jk/unused-post-2.42-part2'Junio C Hamano1-2/+4
2023-09-05parse-options: prefer opt->value to globals in callbacksJeff King1-2/+4
2023-08-21diff: drop useless "status" parameter from diff_result_code()Jeff King1-1/+1
2023-08-21diff: drop useless return from run_diff_{files,index} functionsJeff King1-3/+3
2023-07-28Merge branch 'rs/describe-parseopt-fix'Junio C Hamano1-3/+14
2023-07-21describe: fix --no-exact-matchRené Scharfe1-3/+14
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-06-21git-compat-util.h: remove unneccessary include of wildmatch.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-2/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-04-25Merge branch 'en/header-split-cache-h'Junio C Hamano1-0/+1
2023-04-21Merge branch 'rn/sparse-describe'Junio C Hamano1-0/+2
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/+3
2023-04-06Merge branch 'ab/remove-implicit-use-of-the-repository'Junio C Hamano1-4/+5
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-4/+5
2023-04-03describe: enable sparse index for describeRaghul Nanth A1-0/+2
2023-03-28cocci: apply the "commit.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+2
2023-03-28cocci: apply the "cache.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+3
2023-03-21setup.h: move declarations for setup.c functions from cache.hElijah Newren1-0/+1
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2022-11-21cocci: apply "pending" index-compatibility to some "builtin/*.c"Ævar Arnfjörð Bjarmason1-3/+4
2022-10-28Merge branch 'ab/doc-synopsis-and-cmd-usage'Junio C Hamano1-2/+3
2022-10-13doc txt & -h consistency: add missing options and labelsÆvar Arnfjörð Bjarmason1-2/+3
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-2/+2
2022-08-19hashmap: mark unused callback parametersJeff King1-1/+1
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-1/+2
2022-04-13revisions API users: add straightforward release_revisions()Ævar Arnfjörð Bjarmason1-0/+2
2022-01-05i18n: turn even more messages into "cannot be used together" onesJean-Noël Avila1-2/+2
2022-01-05i18n: turn "options are incompatible" into "cannot be used together"Jean-Noël Avila1-1/+1
2021-04-27hash: provide per-algorithm null OIDsbrian m. carlson1-1/+1
2021-01-21refs: switch peel_ref() to peel_iterated_oid()Jeff King1-1/+1
2020-07-30strvec: rename struct fieldsJeff King1-3/+3
2020-07-28strvec: fix indentation in renamed callsJeff King1-4/+4
2020-07-28strvec: convert builtin/ callers away from argv_array nameJeff King1-14/+14
2020-07-28strvec: rename files from argv-array to strvecJeff King1-1/+1
2020-03-26Merge branch 'jc/describe-misnamed-annotated-tag'Junio C Hamano1-6/+9
2020-02-26describe: don't abort too early when searching tagsBenno Evers1-4/+18
2020-02-20describe: force long format for a name based on a mislocated tagJunio C Hamano1-6/+9
2019-10-15Merge branch 'ew/hashmap'Junio C Hamano1-9/+12
2019-10-07OFFSETOF_VAR macro to simplify hashmap iteratorsEric Wong1-1/+1
2019-10-07hashmap: use *_entry APIs for iterationEric Wong1-2/+2
2019-10-07hashmap_cmp_fn takes hashmap_entry paramsEric Wong1-4/+6
2019-10-07hashmap_get{,_from_hash} return "struct hashmap_entry *"Eric Wong1-1/+2
2019-10-07hashmap_add takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_entry_init takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-04treewide: remove duplicate #include directivesRené Scharfe1-1/+0
2019-09-05use get_tagged_oid()René Scharfe1-1/+1
2019-06-20hashmap: convert sha1hash() to oidhash()Jeff King1-2/+2
2019-06-20describe: fix accidental oid/hash type-punningJeff King1-1/+1
2019-02-06Merge branch 'ss/describe-dirty-in-the-right-directory'Junio C Hamano1-0/+1
2019-02-04describe: setup working tree for --dirtySebastian Staudt1-0/+1
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-0/+1
2019-01-14read-cache.c: replace update_index_if_able with repo_&Nguyễn Thái Ngọc Duy1-1/+1
2018-11-06refresh_index: remove unnecessary calls to preload_index()Ben Peart1-1/+1
2018-10-19Merge branch 'nd/the-index'Junio C Hamano1-2/+2
2018-09-21revision.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-2/+2
2018-08-29convert hashmap comparison functions to oideq()Jeff King1-3/+3
2018-08-29convert "oidcmp() == 0" to oideq()Jeff King1-2/+2
2018-06-29tag: add repository argument to lookup_tagStefan Beller1-3/+3
2018-06-29commit: add repository argument to lookup_commit_referenceStefan Beller1-1/+1
2018-06-29commit: add repository argument to lookup_commit_reference_gentlyStefan Beller1-2/+3
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-06-25Merge branch 'nd/commit-util-to-slab'Junio C Hamano1-3/+13
2018-05-30Merge branch 'ma/lockfile-cleanup'Junio C Hamano1-1/+1
2018-05-23Merge branch 'sb/oid-object-info'Junio C Hamano1-1/+1
2018-05-21describe: use commit-slab for commit names instead of commit->utilNguyễn Thái Ngọc Duy1-3/+13
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-05-10lock_file: make function-local locks non-staticMartin Ågren1-1/+1
2018-04-26cache.h: add repository argument to oid_object_infoStefan Beller1-1/+1
2018-04-11exec_cmd: rename to use dash in file nameStefan Beller1-1/+1
2018-03-14sha1_file: convert sha1_object_info* to object_idbrian m. carlson1-1/+1
2018-03-14Convert find_unique_abbrev* to struct object_idbrian m. carlson1-2/+2
2018-02-27Merge branch 'sb/describe-blob'Junio C Hamano1-1/+1
2018-02-13Merge branch 'rs/describe-unique-abbrev'Junio C Hamano1-1/+1
2018-02-12describe: confirm that blobs actually existJeff King1-1/+1
2018-01-23Merge branch 'dk/describe-all-output-fix'Junio C Hamano1-2/+5
2018-01-16describe: use strbuf_add_unique_abbrev() for adding short hashesRené Scharfe1-1/+1
2017-12-28Merge branch 'sb/describe-blob'Junio C Hamano1-27/+94
2017-12-27describe: prepend "tags/" when describing tags with embedded nameDaniel Knittl-Frank1-2/+5
2017-12-19builtin/describe.c: describe a blobStefan Beller1-5/+57
2017-11-16builtin/describe.c: factor out describe_commitStefan Beller1-26/+37
2017-11-16builtin/describe.c: print debug statements earlierStefan Beller1-1/+4
2017-11-16builtin/describe.c: rename `oid` to avoid variable shadowingStefan Beller1-4/+4
2017-11-06Merge branch 'bc/object-id'Junio C Hamano1-1/+1
2017-11-06Merge branch 'jc/no-cmd-as-subroutine'Junio C Hamano1-4/+11
2017-10-16refs: convert peel_ref to struct object_idbrian m. carlson1-1/+1
2017-10-11describe: do not use cmd_*() as a subroutineJunio C Hamano1-4/+11
2017-09-20describe: teach --match to handle branches and remotesMax Kirillov1-12/+17
2017-09-20Merge branch 'jk/describe-omit-some-refs' into mk/describe-match-with-allJunio C Hamano1-3/+6
2017-09-17describe: fix matching to actually match all patternsMax Kirillov1-3/+6
2017-09-07hashmap: add API to disable item counting when threadedJeff Hostetler1-1/+1
2017-08-11Merge branch 'sb/hashmap-cleanup'Junio C Hamano1-3/+6
2017-07-13Merge branch 'sb/hashmap-customize-comparison'Junio C Hamano1-3/+5
2017-07-10Merge branch 'ab/wildmatch'Junio C Hamano1-2/+2
2017-07-05builtin/describe: drop hashmap_cmp_fn castStefan Beller1-3/+6
2017-06-30hashmap.h: compare function has access to a data fieldStefan Beller1-3/+5
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-23wildmatch: remove unused wildopts parameterÆvar Arnfjörð Bjarmason1-2/+2
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-05-08Convert lookup_tag to struct object_idbrian m. carlson1-3/+3
2017-05-08Convert lookup_commit* to struct object_idbrian m. carlson1-2/+2
2017-03-27describe: localize debug output fullyMichael J Gruber1-3/+12
2017-03-22builtin/describe: introduce --broken flagStefan Beller1-9/+38
2017-03-17Merge branch 'bc/object-id'Junio C Hamano1-25/+25
2017-02-22builtin/describe: convert to struct object_idbrian m. carlson1-25/+25
2017-01-23describe: teach describe negative pattern matchesJacob Keller1-0/+21
2017-01-23describe: teach --match to accept multiple patternsJacob Keller1-7/+23
2016-09-29use QSORTRené Scharfe1-1/+1
2015-11-20Remove get_object_hash.brian m. carlson1-3/+3
2015-11-20Convert struct object to object_idbrian m. carlson1-7/+7
2015-11-20Add several uses of get_object_hash.brian m. carlson1-3/+3
2015-08-31Merge branch 'sg/describe-contains'Junio C Hamano1-4/+4
2015-08-25describe --contains: default to HEAD when no commit-ish is givenSZEDER Gábor1-4/+4
2015-05-25get_name(): rewrite to take an object_id argumentMichael Haggerty1-9/+7
2015-05-25each_ref_fn: change to take an object_id parameterMichael Haggerty1-1/+3
2015-01-14standardize usage info string formatAlex Henrie1-2/+2
2014-10-01lockfile.h: extract new header file for the functions in lockfile.cMichael Haggerty1-0/+1
2014-07-07hashmap: add simplified hashmap_get_from_hash() APIKarsten Blees1-3/+1
2014-07-07hashmap: factor out getting a hash code from a SHA1Karsten Blees1-9/+2
2014-03-14Merge branch 'nd/no-more-fnmatch'Junio C Hamano1-1/+1
2014-02-27Merge branch 'kb/fast-hashmap'Junio C Hamano1-29/+24
2014-02-20use wildmatch() directly without fnmatch() wrapperNguyễn Thái Ngọc Duy1-1/+1
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-1/+1
2013-11-18buitin/describe.c: use new hash map implementationKarsten Blees1-29/+24
2013-10-31describe: trivial style fixesFelipe Contreras1-4/+3
2013-09-17Merge branch 'rh/ishes-doc'Junio C Hamano1-2/+2
2013-09-04use 'commit-ish' instead of 'committish'Richard Hansen1-2/+2
2013-08-05Replace deprecated OPT_BOOLEAN by OPT_BOOLStefan Beller1-10/+10
2013-07-18describe: fix --contains when a tag is given as inputJunio C Hamano1-1/+2
2013-07-09describe: use argv-arrayJunio C Hamano1-15/+15
2013-06-14Merge branch 'mh/reflife'Junio C Hamano1-2/+4
2013-05-28describe: make own copy of refnameMichael Haggerty1-2/+4
2013-05-20describe: Add --first-parent optionMike Crowe1-0/+5
2013-03-25Merge branch 'jc/describe'Junio C Hamano1-21/+20
2013-02-28describe: --match=<pattern> must limit the refs even when used with --allJunio C Hamano1-21/+20
2013-02-24Fix ".git/refs" stragglersGreg Price1-2/+2
2012-10-25Merge branch 'jk/peel-ref'Jeff King1-1/+1
2012-10-04peel_ref: do not return a null sha1Jeff King1-1/+1
2012-08-20i18n: describe: mark parseopt strings for translationNguyễn Thái Ngọc Duy1-14/+14
2011-08-11describe: Refresh the index when run with --dirtyAllan Caffee1-2/+15
2011-04-01Merge branch 'ab/i18n-st'Junio C Hamano1-18/+18
2011-03-23Merge branch 'lt/default-abbrev'Junio C Hamano1-1/+5
2011-03-11Make the default abbrev length configurableLinus Torvalds1-1/+5
2011-03-09i18n: git-describe basic messagesÆvar Arnfjörð Bjarmason1-18/+18
2011-02-18for_each_hash: allow passing a 'void *data' pointer to callbackLinus Torvalds1-2/+2
2010-12-22Merge branch 'tf/commit-list-prefix'Junio C Hamano1-3/+3
2010-12-09describe: Delay looking up commits until searching for an inexact matchAnders Kaseorg1-15/+22
2010-12-09describe: Store commit_names in a hash table by commit SHA1Anders Kaseorg1-5/+33
2010-12-09describe: Do not use a flex array in struct commit_nameAnders Kaseorg1-6/+6
2010-12-09describe: Use for_each_rawrefAnders Kaseorg1-1/+1
2010-11-29commit: Add commit_list prefix in two function names.Thiago Farina1-3/+3
2010-05-21Merge branch 'sp/maint-describe-tiebreak-with-tagger-date'Junio C Hamano1-4/+45
2010-02-22Move 'builtin-*' into a 'builtin/' subdirectoryLinus Torvalds1-0/+396