(no title)
zlies
|
1 year ago
You should switch the default to not delete any files and modify/remove the files only with some flag (--dry-run=false, --rm, --delete, etc).
I just deleted all files accidentally in a monorepo :D
Luckily I didn't had any uncommitted changes and could recover using git
jamil7|1 year ago
richardw|1 year ago
zlies|1 year ago
filleokus|1 year ago
I've never interacted with git programatically so I don't know how messy it would be to implement. But for tools that mostly operate on "whole files" rather than lines in files, I guess it shouldn't be that tricky?
umanwizard|1 year ago
icholy|1 year ago
[deleted]