From: "Theodore Ts'o" <tytso@mit.edu>
To: Masahiro Yamada <masahiroy@kernel.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>,
Nicolas Schier <nicolas@fjasle.eu>,
Nick Desaulniers <ndesaulniers@google.com>,
Linux Kbuild mailing list <linux-kbuild@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Overly aggressive .gitignore file?
Date: Wed, 5 Jul 2023 11:34:05 -0400 [thread overview]
Message-ID: <20230705153405.GA1382903@mit.edu> (raw)
In-Reply-To: <CAK7LNAQas0cK7pgi72tYC3yU=ZkQxnr41YYW1mXd-sWiHtG+UA@mail.gmail.com>
On Wed, Jul 05, 2023 at 10:59:28AM +0900, Masahiro Yamada wrote:
> Perhaps, a slightly similar case is *.patch.
> (We do ignore *.patch)
>
> People quite often run 'git format-patch'.
> And, the generated patches have similar prefixes.
> (0001-, 0002-, 0003-, ..., for good reasons)
>
> The autocomplete does not work if 000* files
> exist from the previous time I ran 'git format-patch'.
> I repeatedly run 'rm -f 00*' even if 'git status' does not show them.
Autocomplete "works", in so far that if you type 0<TAB>, it will
autocomplete up to 000 and then ring the terminal bell, at which point
I'll type say, 1<TAB>, and then if there are previous *.patch files,
it will ring the terminal bell again, and then if you type <TAB> a
second time, it will list the possible autocompletes.
I will also say that since of "rm -f <pattern includes a '*'>" is too
easy to accidentally screwup and delete something I would care about,
my solution is "git format-patch -o /tmp/p ...", since then I can
clear out the files by typing "rm -r /tmp/p".
Cheers,
- Ted
P.S. Also note that "git format-patch" will automatically create
/tmp/p if it doesn't exist, unlike how b4 works with the -o option.
next prev parent reply other threads:[~2023-07-05 15:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-04 19:49 Overly aggressive .gitignore file? Linus Torvalds
2023-07-04 21:15 ` Willy Tarreau
2023-07-04 21:20 ` Linus Torvalds
2023-07-04 21:34 ` Willy Tarreau
2023-07-04 21:44 ` Linus Torvalds
2023-07-04 21:56 ` Willy Tarreau
2023-07-04 22:14 ` Linus Torvalds
2023-07-04 22:27 ` Willy Tarreau
2023-07-05 0:41 ` Theodore Ts'o
2023-07-05 13:51 ` Konstantin Ryabitsev
2023-07-07 18:51 ` Nick Desaulniers
2023-07-07 19:11 ` Linus Torvalds
2023-07-05 8:31 ` Bernd Petrovitsch
2023-07-05 1:59 ` Masahiro Yamada
2023-07-05 15:34 ` Theodore Ts'o [this message]
2023-07-05 16:28 ` Masahiro Yamada
2023-07-05 3:45 ` Nicolas Schier
2023-07-05 5:04 ` Masahiro Yamada
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230705153405.GA1382903@mit.edu \
--to=tytso@mit.edu \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=ndesaulniers@google.com \
--cc=nicolas@fjasle.eu \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox