diff options
| author | Karthik Nayak <karthik.188@gmail.com> | 2025-03-14 09:40:35 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-17 16:58:11 -0700 |
| commit | d1270689a11e1e0dcf19d0257ce773a1d63d02d8 (patch) | |
| tree | cc22afdf14a8894ca3b89240b44e3ac713ea7b36 /Documentation/git-annotate.adoc | |
| parent | 52f2dfb08413d8be6ecbe86271dfe92e33cb67a2 (diff) | |
reflog: implement subcommand to drop reflogs
While 'git-reflog(1)' currently allows users to expire reflogs and
delete individual entries, it lacks functionality to completely remove
reflogs for specific references. This becomes problematic in
repositories where reflogs are not needed but continue to accumulate
entries despite setting 'core.logAllRefUpdates=false'.
Add a new 'drop' subcommand to git-reflog that allows users to delete
the entire reflog for a specified reference. Include an '--all' flag to
enable dropping all reflogs from all worktrees and an addon flag
'--single-worktree', to only drop all reflogs from the current worktree.
While here, remove an extraneous newline in the file.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-annotate.adoc')
0 files changed, 0 insertions, 0 deletions
