Message ID | 20250307-493-add-command-to-purge-reflog-entries-v1-0-84ab8529cf9e@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | EDITME: cover title for 493-add-command-to-purge-reflog-entries | expand |
On Fri, Mar 7, 2025, at 12:17, Karthik Nayak wrote: > This patch series adds a new 'drop' subcommand to git-reflog that allows > users to delete the reflog for a specified reference. Additionally, it > adds an '--all' flag to enable dropping all reflogs in a repository. > This is a followup to the discussion we had when I sent in a patch to > add '--no-reflog' option to 'git refs migrate' [1]. I’ve been wanting a command to drop reflogs. I use `always` and get a lot of entries that I don’t care about. But I don’t want to set it to `true` because I care about some of them. So this is great.
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes: > On Fri, Mar 7, 2025, at 12:17, Karthik Nayak wrote: >> This patch series adds a new 'drop' subcommand to git-reflog that allows >> users to delete the reflog for a specified reference. Additionally, it >> adds an '--all' flag to enable dropping all reflogs in a repository. >> This is a followup to the discussion we had when I sent in a patch to >> add '--no-reflog' option to 'git refs migrate' [1]. > > I’ve been wanting a command to drop reflogs. I use `always` and get a > lot of entries that I don’t care about. But I don’t want to set it to > `true` because I care about some of them. > > So this is great. > That's good to know! I was surprised that this didn't exist till date. > -- > Kristoffer Haugsbakk
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes: > I’ve been wanting a command to drop reflogs. I use `always` and get a > lot of entries that I don’t care about. But I don’t want to set it to > `true` because I care about some of them. I am not sure what these references to always and true are about, but nevertheless, instead of having to release entries one by one with "git reflog delete", a command that lets you discard all the reflog entries for a given ref would be a great addition to the toolset. Thanks for commenting.