[Nagiosplug-devel] [nagiosplug] tools/distclean: use git-clean when possible

Thomas Guyot-Sionnest dermoth at aei.ca
Wed Apr 28 12:17:07 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10-04-28 06:12 AM, Andreas Ericsson wrote:
> On 04/28/2010 12:04 PM, Thomas Guyot-Sionnest wrote:
>>
>> tools/distclean: use git-clean when possible
>>
>> git-clean is much faster and more reliable...
>>
> 
> This is a bad idea. It will kill all random-files one has
> in the repository in addition to all the build-produce.
> 
> I lost 4 weeks worth of debugging data when I tried this
> clever trick once.
> 
> Since you know where all the buildstuff ends up anyway,
> it's a lot better to keep track of it in lists and whatnot.
> 
> Besides, a lot of the reasons for "distclean" goes away if
> you use "git archive" to produce tar-balls.

distclean is a tool I use for cleaning up my tree... besides, the change
I just made deletes only ignored files which in this repository is very
close to what gets automatically (re)generated at each build.

Nothing runs this script automatically.

- -- 
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkvYCxMACgkQ6dZ+Kt5BchZ3jACaAqV2acIhKbAs8whgL1NYbskv
8X8AoLtyaJ5XMSsyKIx3Mq/q7n/p2fOw
=iOYN
-----END PGP SIGNATURE-----




More information about the Devel mailing list