Date: Fri, 11 Feb 2022 12:11:39 -0300 From: Renato Botelho <garga@FreeBSD.org> To: Drew Gallatin <gallatin@netflix.com> Cc: Kristof Provost <kp@freebsd.org>, Andrew Gallatin <gallatin@cs.duke.edu>, "Alexander V. Chernikov" <melifaro@freebsd.org>, src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Conrad Meyer <cem@freebsd.org>, Andriy Gapon <avg@freebsd.org> Subject: Re: git: b1f7154cb125 - main - gitignore: ignore vim swap files & .rej/.orig Message-ID: <a493e61a-4405-0f5b-655f-d184f30e2be7@FreeBSD.org> In-Reply-To: <CADLQ3sJhbyCa2KmEKkhfUTPrzCv2nWcjA8CyLdGd-U2wr2ZB%2BQ@mail.gmail.com> References: <202201170935.20H9ZM3T069547@gitrepo.freebsd.org> <72061959-88f8-d2ee-b4e9-f09ca084411e@cs.duke.edu> <4FC1EDC4-9F20-4271-B468-715A1727AC8A@FreeBSD.org> <CADLQ3sKdAvci47RxK=Vqg4JA0Wff2z9dcuDrByWNdendQu=M%2Bw@mail.gmail.com> <4f4f6a83-3def-4938-6e40-5460486cc415@FreeBSD.org> <CADLQ3sJhbyCa2KmEKkhfUTPrzCv2nWcjA8CyLdGd-U2wr2ZB%2BQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 11/02/22 12:02, Drew Gallatin wrote: > I think that has the same problem. Either that, or I'm doing the > escaping wrong. Using tcsh: > > <10:01am>beast/gallatin:work1>git clean -ne '\!\*.orig' > Would remove ktrace.out > <10:01am>beast/gallatin:work1>git clean -xn | grep rej > Would remove FreeBSD/sys/dev/mlx5/mlx5_en/en_hw_tls.h.rej -e expects a pattern of files/directories that you don't want to remove and can be used multiple times. It worked here on a testing repo: sh-3.2$ git clean -xn Would remove d1/d2/bar.orig Would remove d1/d2/bar.rej Would remove foo.orig Would remove foo.rej sh-3.2$ git clean -xn -e '*.rej' Would remove d1/d2/bar.orig Would remove foo.orig sh-3.2$ git clean -xn -e '*.rej' -e '*.orig' sh-3.2$ -- Renato Botelho
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a493e61a-4405-0f5b-655f-d184f30e2be7>