[Top][All Lists]

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

Re: Mutilating my own stdlib.h

From: Simon Josefsson
Subject: Re: Mutilating my own stdlib.h
Date: Sun, 03 Apr 2011 10:20:50 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/23.2 (gnu/linux)

Bruce Korb <address@hidden> writes:

> WRT "distclean", I never do that any more.
> I clone the repo into a build directory and do all my
> fiddling there.  Yes, "git" has a command to remove
> everything, but I developed my procedures back in
> CVS (pre-svn) days, and old habits die hard....
> Purging all non-SCM managed sources is very reliable.

+1.  Unfortunately git doesn't have a single handy command for wiping
out all non-SCM files.  I'm using a small tool called 'gitco' (inspired
by 'cvsco') I wrote when I started to use git:

# gitco - cruel checkout.  Discards everything that has not been
# committed, and checkout missing files.
# Written by Simon Josefsson.  Licensed under GPLv2 or later.
# Contributions by Yann Dirson.
git clean -d -x -f
git status
git reset --hard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]