diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-01-10 11:52:52 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-01-10 11:52:52 -0800 |
| commit | 626f2cabe609ce5f186c3ab4c13133c4f3011f01 (patch) | |
| tree | 6013326deeab4a2d5812d8684ac05ddb25a110fa /refs.h | |
| parent | 8ab404ea0463c99fc85095e0419ed08a1486ae92 (diff) | |
| parent | fcd2c3d9d854712e7fbb8e7be5a809029aab0a84 (diff) | |
| download | git-626f2cabe609ce5f186c3ab4c13133c4f3011f01.tar.xz | |
Merge branch 'ab/reflog-prep'
Code refactoring in the reflog part of refs API.
* ab/reflog-prep:
reflog + refs-backend: move "verbose" out of the backend
refs files-backend: assume cb->newlog if !EXPIRE_REFLOGS_DRY_RUN
reflog: reduce scope of "struct rev_info"
reflog expire: don't use lookup_commit_reference_gently()
reflog expire: refactor & use "tip_commit" only for UE_NORMAL
reflog expire: use "switch" over enum values
reflog: change one->many worktree->refnames to use a string_list
reflog expire: narrow scope of "cb" in cmd_reflog_expire()
reflog delete: narrow scope of "cmd" passed to count_reflog_ent()
Diffstat (limited to 'refs.h')
| -rw-r--r-- | refs.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -820,8 +820,7 @@ enum ref_type ref_type(const char *refname); enum expire_reflog_flags { EXPIRE_REFLOGS_DRY_RUN = 1 << 0, EXPIRE_REFLOGS_UPDATE_REF = 1 << 1, - EXPIRE_REFLOGS_VERBOSE = 1 << 2, - EXPIRE_REFLOGS_REWRITE = 1 << 3 + EXPIRE_REFLOGS_REWRITE = 1 << 2, }; /* |
