Open ianwilliams1 opened 1 year ago
It's an interesting idea, and might make sense for someone to create a contrib script for.
It would not make sense as part of the main tool because:
--analyze
are really only meant as guiding points, not as Truth. In particular, if the repo has some ancient branch still open that just hasn't been updated in years, it may be that some long-deleted file is still present within that branch. And thus, the file will not show as being deleted in the --analyze
reports, because it still exists on some branch.
Love the tool, so convenient, but asking for a little more convenience...
Feature request: Perform action only on deleted artifacts :
--deleted only
I would like to apply a command such that I can purge all unwanted artifacts, but only after they have been deleted first. eg:
I'm sure this use case is not unusual. As a Lead / Admin of a large group of mixed experience developers, we find often a mis-constructed ignore file has resulted in unwanted artifacts being committed, resulting in repo bloat.
The documentation reads:
But that means I must process the
'path-deleted-sizes.txt'
through a regex, create the/tmp
file and process again. I'd liek the convenience of a one-shot command, but with the safety net of knowing I am applying my criteria (regex, size, etc.) only to files that have already been deleted.Hopefully the explanation (and contrived examples) is clear.