lkml.org 
[lkml]   [2008]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectgit-clean [Was: Linux 2.6.28-rc1]
On 2008.10.24 17:13:40 +0400, Alexey Dobriyan wrote:
> On Fri, Oct 24, 2008 at 01:52:45PM +0100, Alistair John Strachan wrote:
> > git reset --hard v2.6.27 ; git clean -d -f
> > git status ("Nothing to commit")
> >
> > cp /path/to/config .config
> > make oldconfig prepare
> > git clean -d -f ; git reset --hard
> > git status ("Nothing to commit")
> >
> > Observe at this point that include/asm is valid and points to
> > include/asm-x86, despite the clean and reset (I guess this file is
> > being ignored).
>
> Use this script for super-clean project-agnostic clean:
>
> $ cat ~/bin/git-mrproper
> #!/bin/sh
> git-ls-files -o --directory -z | xargs -0 rm -rf

JFYI, that should be the same as:
git clean -xdf

The -x makes it wipe out ignored files as well.

Björn
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2008-10-24 16:59    [W:0.103 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site