aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/reflog.c
AgeCommit message (Expand)AuthorFilesLines
2025-10-08Merge branch 'ml/reflog-write-committer-info-fix'Junio C Hamano1-0/+2
2025-10-01builtin/reflog: respect user config in "write" subcommandMichael Lohmann1-0/+2
2025-08-21Merge branch 'ps/reflog-migrate-fixes'Junio C Hamano1-19/+84
2025-08-06builtin/reflog: implement subcommand to write new entriesPatrick Steinhardt1-0/+65
2025-08-06builtin/reflog: improve grouping of subcommandsPatrick Steinhardt1-19/+19
2025-08-04Merge branch 'ps/config-wo-the-repository'Junio C Hamano1-1/+1
2025-07-23config: drop `git_config()` wrapperPatrick Steinhardt1-1/+1
2025-07-22reflog: close leak of reflog expire entryJacob Keller1-0/+3
2025-04-16Merge branch 'ps/maintenance-reflog-expire'Junio C Hamano1-137/+16
2025-04-08builtin/reflog: make functions regarding `reflog_expire_options` publicPatrick Steinhardt1-111/+4
2025-04-08builtin/reflog: stop storing per-reflog expiry dates globallyPatrick Steinhardt1-18/+12
2025-04-08builtin/reflog: stop storing default reflog expiry dates globallyPatrick Steinhardt1-15/+7
2025-04-08reflog: rename `cmd_reflog_expire_cb` to `reflog_expire_options`Patrick Steinhardt1-19/+19
2025-03-17reflog: implement subcommand to drop reflogsKarthik Nayak1-1/+65
2025-03-17reflog: improve error for when reflog is not foundKarthik Nayak1-1/+1
2024-12-06diff.h: fix index used to loop through unsigned integerPatrick Steinhardt1-1/+0
2024-12-06global: mark code units that generate warnings with `-Wsign-compare`Patrick Steinhardt1-0/+2
2024-11-26builtin: pass repository to sub commandsKarthik Nayak1-6/+11
2024-09-13builtin: remove USE_THE_REPOSITORY_VARIABLE from builtin.hJohn Cai1-1/+1
2024-09-13builtin: add a repository parameter for builtin functionsJohn Cai1-3/+6
2024-05-17refs: remove `dwim_log()`Patrick Steinhardt1-1/+1
2024-05-07cocci: apply rules to rewrite callers of "refs" interfacesPatrick Steinhardt1-11/+14
2024-03-01Merge branch 'ps/reflog-list' into HEADJunio C Hamano1-2/+35
2024-02-21builtin/reflog: introduce subcommand to list reflogsPatrick Steinhardt1-0/+34
2024-02-21refs: drop unused params from the reflog iterator callbackPatrick Steinhardt1-2/+1
2024-02-12use xstrncmpz()René Scharfe1-2/+1
2024-02-08Merge branch 'jb/reflog-expire-delete-dry-run-options' into maint-2.43Junio C Hamano1-2/+2
2023-12-18Merge branch 'jb/reflog-expire-delete-dry-run-options'Junio C Hamano1-2/+2
2023-11-26builtin/reflog.c: fix dry-run option short nameJosh Brobst1-2/+2
2023-11-08Merge branch 'kn/rev-list-missing-fix'Junio C Hamano1-1/+1
2023-11-01revision: rename bit to `do_not_die_on_missing_objects`Karthik Nayak1-1/+1
2023-10-29reflog: fix expire --single-worktreeRené Scharfe1-3/+3
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-3/+4
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-3/+4
2023-06-21git-compat-util.h: remove unneccessary include of wildmatch.hElijah Newren1-0/+1
2023-06-21diff.h: remove unnecessary include of oidset.hElijah Newren1-0/+1
2023-04-06Merge branch 'en/header-split-cleanup'Junio C Hamano1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-03-20treewide: include parse-options.h in source filesSZEDER Gábor1-0/+1
2022-09-19refs: unify parse_worktree_ref() and ref_type()Han-Wen Nienhuys1-1/+2
2022-09-14Merge branch 'ab/unused-annotation'Junio C Hamano1-2/+2
2022-09-14Merge branch 'jk/unused-annotation'Junio C Hamano1-1/+2
2022-09-01Merge branch 'sg/parse-options-subcommand'Junio C Hamano1-31/+12
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-2/+2
2022-08-20reflog: assert PARSE_OPT_NONEG in parse-options callbacksJeff King1-0/+4
2022-08-19refs: mark unused each_ref_fn parametersJeff King1-1/+2
2022-08-19builtin/reflog.c: let parse-options parse subcommandsSZEDER Gábor1-30/+11
2022-08-19parse-options: PARSE_OPT_KEEP_UNKNOWN only applies to --optionsSZEDER Gábor1-2/+2
2022-06-07Merge branch 'ab/plug-leak-in-revisions'Junio C Hamano1-0/+1
2022-04-13revisions API users: add straightforward release_revisions()Ævar Arnfjörð Bjarmason1-0/+1
2022-03-28reflog: fix 'show' subcommand's argvSZEDER Gábor1-2/+2
2022-03-23reflog [show]: display sensible -h outputÆvar Arnfjörð Bjarmason1-2/+23
2022-03-23reflog: convert to parse_options() APIÆvar Arnfjörð Bjarmason1-8/+32
2022-03-17reflog exists: use parse_options() APIÆvar Arnfjörð Bjarmason1-22/+16
2022-03-17git reflog [expire|delete]: make -h output consistent with SYNOPSISÆvar Arnfjörð Bjarmason1-6/+5
2022-03-17reflog: move "usage" variables and use macrosÆvar Arnfjörð Bjarmason1-15/+24
2022-03-17reflog: refactor cmd_reflog() to "if" branchesÆvar Arnfjörð Bjarmason1-6/+3
2022-03-16Merge branch 'jc/stash-drop'Junio C Hamano1-451/+4
2022-03-06Merge branch 'ac/usage-string-fixups'Junio C Hamano1-3/+3
2022-03-02reflog: libify delete reflog function and helpersJohn Cai1-451/+4
2022-02-25Merge branch 'ja/i18n-common-messages'Junio C Hamano1-1/+1
2022-02-23amend remaining usage strings according to style guideAbhradeep Chakraborty1-3/+3
2022-02-04i18n: fix some misformated placeholders in command synopsisJean-Noël Avila1-2/+2
2022-02-04i18n: remove from i18n strings that do not hold translatable partsJean-Noël Avila1-1/+1
2022-01-10builtin/reflog.c: use parse-options api for expire, delete subcommandsJohn Cai1-79/+97
2021-12-22reflog + refs-backend: move "verbose" out of the backendÆvar Arnfjörð Bjarmason1-9/+47
2021-12-22reflog: reduce scope of "struct rev_info"Ævar Arnfjörð Bjarmason1-6/+7
2021-12-22reflog expire: don't use lookup_commit_reference_gently()Ævar Arnfjörð Bjarmason1-2/+1
2021-12-22reflog expire: refactor & use "tip_commit" only for UE_NORMALÆvar Arnfjörð Bjarmason1-7/+7
2021-12-22reflog expire: use "switch" over enum valuesÆvar Arnfjörð Bjarmason1-24/+33
2021-12-22reflog: change one->many worktree->refnames to use a string_listÆvar Arnfjörð Bjarmason1-29/+18
2021-12-22reflog expire: narrow scope of "cb" in cmd_reflog_expire()Ævar Arnfjörð Bjarmason1-16/+15
2021-12-22reflog delete: narrow scope of "cmd" passed to count_reflog_ent()Ævar Arnfjörð Bjarmason1-11/+11
2021-10-23reflog: free() ref given to us by dwim_log()Ævar Arnfjörð Bjarmason1-0/+1
2021-08-25refs API: remove OID argument to reflog_expire()Ævar Arnfjörð Bjarmason1-3/+3
2021-08-25reflog expire: don't lock reflogs using previously seen OIDÆvar Arnfjörð Bjarmason1-7/+6
2021-02-11reflog expire --stale-fix: be generous about missing objectsJohannes Schindelin1-0/+3
2020-07-06Merge branch 'es/get-worktrees-unsort'Junio C Hamano1-1/+1
2020-06-22worktree: drop get_worktrees() unused 'flags' argumentEric Sunshine1-1/+1
2020-04-10parse_config_key(): return subsection len as size_tJeff King1-1/+1
2020-01-31C: use skip_prefix() to avoid hardcoded string lengthJunio C Hamano1-4/+5
2019-02-06Merge branch 'jk/loose-object-cache-oid'Junio C Hamano1-1/+1
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-2/+2
2019-01-08convert has_sha1_file() callers to has_object_file()Jeff King1-1/+1
2019-01-04Merge branch 'nd/i18n'Junio C Hamano1-15/+19
2018-11-13Merge branch 'nd/per-worktree-ref-iteration'Junio C Hamano1-4/+42
2018-11-12reflog: mark strings for translationNguyễn Thái Ngọc Duy1-15/+19
2018-10-22reflog expire: cover reflog from all worktreesNguyễn Thái Ngọc Duy1-4/+42
2018-09-21revision.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-06-29commit: add repository argument to lookup_commit_reference_gentlyStefan Beller1-4/+6
2018-06-29tree: add repository argument to lookup_treeStefan Beller1-1/+1
2018-06-29object: add repository argument to parse_objectStefan Beller1-1/+2
2018-06-29Merge branch 'sb/object-store-grafts' into sb/object-store-lookupJunio C Hamano1-0/+1
2018-05-23Merge branch 'ds/lazy-load-trees'Junio C Hamano1-1/+1
2018-05-16object-store: move object access functions to object-store.hStefan Beller1-0/+1
2018-04-11treewide: replace maybe_tree with accessor methodsDerrick Stolee1-1/+1
2018-04-11treewide: rename tree to maybe_treeDerrick Stolee1-1/+1
2018-04-10Merge branch 'bc/object-id'Junio C Hamano1-1/+1
2018-03-14Merge branch 'nd/object-allocation-comments'Junio C Hamano1-0/+1
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-1/+1
2018-03-06object.h: update flag allocation commentNguyễn Thái Ngọc Duy1-0/+1
2018-02-22reflog: rename 'new' variablesBrandon Williams1-4/+4
2017-11-18config: add --expiry-dateHaaris Mehmood1-12/+2
2017-10-16refs: convert reflog_expire parameter to struct object_idbrian m. carlson1-3/+3
2017-10-16refs: convert dwim_log to struct object_idbrian m. carlson1-2/+2
2017-10-16builtin/reflog: convert remaining unsigned char uses to object_idbrian m. carlson1-9/+9
2017-09-24object_array: add and use `object_array_pop()`Martin Ågren1-1/+1
2017-09-24object_array: use `object_array_clear()`, not `free()`Martin Ågren1-2/+2
2017-07-10Merge branch 'ab/wildmatch'Junio C Hamano1-1/+1
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-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-05-29Merge branch 'bc/object-id'Junio C Hamano1-18/+18
2017-05-08object: convert parse_object* to take struct object_idbrian m. carlson1-1/+1
2017-05-08Convert lookup_tree to struct object_idbrian m. carlson1-1/+1
2017-05-08builtin/reflog: convert tree_is_complete to take struct object_idbrian m. carlson1-5/+5
2017-05-08Convert lookup_commit* to struct object_idbrian m. carlson1-4/+4
2017-05-08reflog_expire: convert to struct object_idbrian m. carlson1-11/+11
2017-04-27timestamp_t: a new data type for timestampsJohannes Schindelin1-12/+12
2017-02-22refs: convert each_reflog_ent_fn to struct object_idbrian m. carlson1-1/+1
2016-04-25struct name_entry: use struct object_id instead of unsigned char sha1[20]brian m. carlson1-2/+2
2016-02-22convert trivial cases to FLEX_ARRAY macrosJeff King1-5/+2
2016-02-19reflog_expire_cfg: NUL-terminate pattern fieldJeff King1-5/+3
2015-11-20Remove get_object_hash.brian m. carlson1-2/+2
2015-11-20Add several uses of get_object_hash.brian m. carlson1-2/+2
2015-10-30Merge branch 'rs/pop-commit'Junio C Hamano1-5/+1
2015-10-26use pop_commit() for consuming the first entry of a struct commit_listRené Scharfe1-5/+1
2015-09-01Merge branch 'ah/reflog-typofix-in-error'Junio C Hamano1-1/+1
2015-08-28reflog: add missing single quote to error messageAlex Henrie1-1/+1
2015-07-21git-reflog: add exists commandDavid Turner1-1/+32
2015-05-25builtin/reflog: rewrite ref functions to take an object_id argumentMichael Haggerty1-10/+6
2015-05-25each_ref_fn: change to take an object_id parameterMichael Haggerty1-2/+7
2015-03-05reflog: improve and update documentationMichael Haggerty1-6/+3
2014-12-22reflog_expire(): new function in the reference APIMichael Haggerty1-133/+15
2014-12-12expire_reflog(): treat the policy callback data as opaqueMichael Haggerty1-36/+36
2014-12-12Move newlog and last_kept_sha1 to "struct expire_reflog_cb"Michael Haggerty1-10/+10
2014-12-12expire_reflog(): move rewrite to flags argumentMichael Haggerty1-5/+5
2014-12-12expire_reflog(): move verbose to flags argumentMichael Haggerty1-8/+8
2014-12-12expire_reflog(): pass flags through to expire_reflog_ent()Michael Haggerty1-0/+2
2014-12-12struct expire_reflog_cb: a new callback data typeMichael Haggerty1-17/+26
2014-12-12Rename expire_reflog_cb to expire_reflog_policy_cbMichael Haggerty1-9/+10
2014-12-12expire_reflog(): move updateref to flags argumentMichael Haggerty1-6/+6
2014-12-12expire_reflog(): move dry_run to flags argumentMichael Haggerty1-5/+8
2014-12-12expire_reflog(): add a "flags" argumentMichael Haggerty1-4/+6
2014-12-12expire_reflog(): extract two policy-related functionsMichael Haggerty1-42/+52
2014-12-12Extract function should_expire_reflog_ent()Michael Haggerty1-28/+42
2014-12-12expire_reflog(): use a lock_file for rewriting the reflog fileMichael Haggerty1-19/+41
2014-12-12expire_reflog(): return early if the reference has no reflogMichael Haggerty1-3/+5
2014-12-12expire_reflog(): rename "ref" parameter to "refname"Michael Haggerty1-8/+8
2014-12-12expire_reflog(): it's not an each_ref_fn anymoreMichael Haggerty1-5/+5
2014-10-29Merge branch 'jk/prune-mtime'Junio C Hamano1-1/+1
2014-10-16prune: keep objects reachable from recent objectsJeff King1-1/+1
2014-10-01lockfile.h: extract new header file for the functions in lockfile.cMichael Haggerty1-1/+1
2014-10-01lockfile: change lock_file::filename into a strbufMichael Haggerty1-1/+1
2014-05-08refs.c: add new functions reflog_exists and delete_reflogRonnie Sahlberg1-1/+1
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-2/+2
2013-09-20Merge branch 'bk/refs-multi-update'Junio C Hamano1-1/+1
2013-09-17Merge branch 'jk/free-tree-buffer'Junio C Hamano1-2/+1
2013-08-30refs: report ref type from lock_any_ref_for_updateBrad King1-1/+1
2013-06-06clear parsed flag when we free tree buffersJeff King1-2/+1
2013-05-29Merge branch 'jc/prune-all'Junio C Hamano1-7/+7
2013-04-17date.c: add parse_expiry_date()Junio C Hamano1-7/+7
2013-03-25Merge branch 'jc/maint-reflog-expire-clean-mark-typofix'Junio C Hamano1-1/+1
2013-03-05reflog: fix typo in "reflog expire" clean-up codepathJunio C Hamano1-1/+1
2013-01-23reflog: use parse_config_key in config callbackJeff King1-6/+7
2012-06-07reflog: remove i18n legos in pruning messageNguyễn Thái Ngọc Duy1-2/+4
2011-11-07prune: show progress while marking reachable objectsNguyễn Thái Ngọc Duy1-1/+1
2011-08-01reflog: actually default to subcommand 'show'Michael Schubert1-2/+1
2010-05-21Merge branch 'jc/maint-no-reflog-expire-unreach-for-head'Junio C Hamano1-10/+59
2010-05-08Merge branch 'jc/maint-reflog-expire-unreachable'Junio C Hamano1-40/+56
2010-04-19Merge branch 'maint'Junio C Hamano1-1/+1
2010-03-10Merge branch 'lt/deepen-builtin-source'Junio C Hamano1-0/+717
2010-02-22Move 'builtin-*' into a 'builtin/' subdirectoryLinus Torvalds1-0/+719