Re: Add a way to disable «git clean» per repo

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Guillem Jover <guillem@xxxxxxxxxxx> writes:

> Accidentally running «git clean -xdf» or «git clean -Xdf» might be
> catastrophic there.

So would accidentally running "rm -fr" there be catastrophic, too.
I doubt it would make much sense to file a feature request to Debian
or GNU/FSF to disable "rm -r" in certain directories.  I am not sure
why "git clean" should be any different.

Commands like "git clean" require "-f" before they become overly
destructuve for a reason.  clean.requireForce defaults to true for
the same reason.



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux