From nobody Fri Feb 11 15:11:39 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id E7CDA19BE1F9; Fri, 11 Feb 2022 15:11:42 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwHC26BV4z4sl3; Fri, 11 Feb 2022 15:11:42 +0000 (UTC) (envelope-from garga@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644592302; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=frMAD9bdVoZCdk9msG21Die+PgKAUXY9Jw4JhGiEYNU=; b=HK9p1XSAjoEpNT+f2fDxr+To/t4uCBp+p0h4P49FAeDPEfbd3YiyD7y+kj8ZQXYyDGnV/W AHfh6jnGRC/Mo9AsJb8kdLPeLrZ3SQm5+5dBOB2VfTV48ptNu5h25au6ZJ3QN4/DahMCCb zfAzCj0COnwJhg1PqkgBQsRf0v+DURqPa/3gYMLx96Vp1bvjq4W/Oap+FA+FHRYrvgEQC6 2Qw1TWmoc0yinDnjFYc7IJfYjgOfpKvUmFH824NIJjzDp2uje3e4lZ+28JuSyseEmltQbN yVC23wNZq1BBPGw8H+ND6hOViLvlZDLgor44NHf6ccgGmQgAwMMLrzr/VgD0EA== Received: from [172.21.4.170] (dynamic-177-53-82-16.telecominternet.net.br [177.53.82.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: garga) by smtp.freebsd.org (Postfix) with ESMTPSA id 7E140CA28; Fri, 11 Feb 2022 15:11:41 +0000 (UTC) (envelope-from garga@FreeBSD.org) Message-ID: Date: Fri, 11 Feb 2022 12:11:39 -0300 List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: git: b1f7154cb125 - main - gitignore: ignore vim swap files & .rej/.orig Content-Language: en-US To: Drew Gallatin Cc: Kristof Provost , Andrew Gallatin , "Alexander V. Chernikov" , src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org, Conrad Meyer , Andriy Gapon References: <202201170935.20H9ZM3T069547@gitrepo.freebsd.org> <72061959-88f8-d2ee-b4e9-f09ca084411e@cs.duke.edu> <4FC1EDC4-9F20-4271-B468-715A1727AC8A@FreeBSD.org> <4f4f6a83-3def-4938-6e40-5460486cc415@FreeBSD.org> From: Renato Botelho In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644592302; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=frMAD9bdVoZCdk9msG21Die+PgKAUXY9Jw4JhGiEYNU=; b=W3IgB73Kt22byt6T4ylKp+oklUK9204BxWN38pOhWElivR3yiL0dpKNYK7ctU+keF5Ft2n lJ+6/hB0RGwWAy+06G2u4K+kLC41x9u9Zi+uottdo9OpV8AflPXEXKsBthnBpcH0OFBeOG wJaFsBT+oKUcPxmFBwW1dQlTeFnIicnRJtduIXZtHKPfU4mXsP6Ev9hdUtJDxC5rFWO49q sr2EiayEyg5inStGcROmcNMEweddaywKToZwGPnQtTkxa7ExADUx8GOkn6eacMvz9SKVL8 NN3NqKr3nX8oMyqg0r6tFDTfujMhahJBuNkF2/tomviZ2t9kndv3K9xmmksarA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644592302; a=rsa-sha256; cv=none; b=wunJfqbB/p0tqu7AgQ7Jlued9FsO+5zYmMvywsnyYigWBAfB+A3lnoNfUIeQBCPWv2yRKm eocS69wUEo+9NYRSJmtbGmKf7ogVO4+Ci+wYvUgfb2J/ytktJ381BFFxng7CjT2gwpgsE6 bwPTW1Ei4Vn6TrSOTvUXxMysC1CqJdY5g8sd3zEjv16fzXkqUTIEFslNi4u1eB6mj5XoI3 MyLqPmFCvmYv7LCJLv/9v6S7uJv/E4mehc3HysRzjRU9a1rC98tH5HORjQkrqdW8LqbhVR YY4SHxm374XhsIOLrOxwj7Xz7+ebPD/gcCGPgDITux9qJAUTjg97blSJ2aWAGA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N 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