From nobody Fri Feb 11 15:12:51 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 A75AC19BE88F; Fri, 11 Feb 2022 15:12:54 +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 4JwHDQ43Ldz4t8n; Fri, 11 Feb 2022 15:12:54 +0000 (UTC) (envelope-from garga@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644592374; 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=v+V3ppIqQiIhfqbtLItLHfIzeOrpVNX5Zcs32PsSvGc=; b=J8yPhXpODzfZhpIW8wtn2mYenaaNXuIM9n2jH1QCkR4YyUVwZcUQO9WhtepSkdapjpzsGR aHcUmzYCOhqlaIqofaSLra4h0CtZcxXmsAAM4p3W+FZ2Cr8RZfnOCztLkIoNdIf+qB3oJ/ sCovgMrLlnrsncEHbi8XF4CHJ3ZKJ4bmAPBMxKva7p1ymdIIUKRQkPNZe9+tbh9kQ51Rq4 XLXkcWAlOXPR0quAKw1DiNpiZSjztT02hv8hZWThBE3fovf6Y0csoG5251PLZnu7AvGPgJ +KBDr4qXbZWwAdsc5b3/2Wi1EMMuzZBLyog0bCHvgg3OXn3ZkS7ZHVz4N6VRDg== 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 D3542CD2F; Fri, 11 Feb 2022 15:12:52 +0000 (UTC) (envelope-from garga@FreeBSD.org) Message-ID: <898c0071-66bc-db5f-b70d-72429d167279@FreeBSD.org> Date: Fri, 11 Feb 2022 12:12:51 -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 From: Renato Botelho 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> 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=1644592374; 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=v+V3ppIqQiIhfqbtLItLHfIzeOrpVNX5Zcs32PsSvGc=; b=N0V/Cg5MiIVoiEX6E1Nji8XkBD7vV/skK9YjNT+UgN2ffz4sU8Tji2NRRaFWRif4RQBJzm eIwS2LVN5gUq5j6Y0H15kCWadlZi3Jl/NiNEgm0wKaubYB7VvRs9iQxfN1Dy3WxbEUSC/Q qtmyU4ExzX4jzWq59R2cWMA/7YKKLLhTtgR4m1RlLWS7Tn5gx3nxeak7iZu3Gr4VT4vJ0W 4ujlbrL0is3hpErCpnwj2Q8bJ30nTa2WA+9eSmuvkNpHjwcKyzLIXBGjZK0LFNXr3ey5A1 p2KG0WnW9IpWpHIUwRxYw2T/1jtdimcpV1JxurAI4CybkqU4CSeiWUQJ5Shexg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644592374; a=rsa-sha256; cv=none; b=DfXYbSgYgyQ41HVAvVjTk+siTDnC7UfZJh/TiSTu+QsnhDHPdNiOyCNgs+7dUjtSp+oO0y PJHsBTaGMGj4KVmvC0GSrBTlAda8KriRvUtXmYr1QzvrvKmUuQO1jb5tBLOM6St/hGDIOz xTecvSaWjH84QH8tk+HxgTj8iIBal1KpBDjNAOC3acCQ4dNGKYPlfSKsXnlZ9aW1ejl9+j x0ZMR/BwHNKD5JKTwhaciw4AaKKQGrHKN6fajhuasSOIA9h5MwE4wSCJfCOAEMeW+jUTcz zomKzTHnqw4vX9STz5EpNdChaqaS65hccYfbtdVEZe0G68INbT8O5PVKObE6MA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On 11/02/22 12:11, Renato Botelho wrote: > 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$ > Fat finger here, I was about to say you also can specify what you want to remove using wildcards like: sh-3.2$ git clean -xn '*.orig' Would remove d1/d2/bar.orig Would remove foo.orig sh-3.2$ git clean -xn '*.rej' Would remove d1/d2/bar.rej Would remove foo.rej -- Renato Botelho