Message ID | 20190227051602.28987-1-wqu@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs-progs: gitignore: Ignore hidden files | expand |
On Wed, 27 Feb 2019 at 05:16, Qu Wenruo <wqu@suse.com> wrote: > > A lot of editor/IDE related config files are hidden files, like .vimrc > or .clang_complete. > > Instead of adding gitignore entry for each editor/IDE, just ignore all > hidden files like what kernel does. I think you mean: files starting with ".", like ls does by default without the -a flag. Mike > > Signed-off-by: Qu Wenruo <wqu@suse.com> > --- > .gitignore | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/.gitignore b/.gitignore > index d9f022c48c7d..aadf9ae77d41 100644 > --- a/.gitignore > +++ b/.gitignore > @@ -64,7 +64,7 @@ > /cscope.files > /cscope.in.out > /cscope.po.out > -.clang_complete > +.* > > /Documentation/Makefile > /Documentation/*.html > -- > 2.21.0 >
On 2019/2/27 下午7:22, Mike Fleetwood wrote: > On Wed, 27 Feb 2019 at 05:16, Qu Wenruo <wqu@suse.com> wrote: >> >> A lot of editor/IDE related config files are hidden files, like .vimrc >> or .clang_complete. >> >> Instead of adding gitignore entry for each editor/IDE, just ignore all >> hidden files like what kernel does. > I think you mean: > files starting with ".", like ls does by default without the -a flag. When I punched the words "linux hidden file" into google, I got quite a lot of pages showing 'In the Linux operating system, a hidden file is any file that begins with a "."' So I think the words "hidden files" should be more or less OK? Thanks, Qu > > Mike > >> >> Signed-off-by: Qu Wenruo <wqu@suse.com> >> --- >> .gitignore | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/.gitignore b/.gitignore >> index d9f022c48c7d..aadf9ae77d41 100644 >> --- a/.gitignore >> +++ b/.gitignore >> @@ -64,7 +64,7 @@ >> /cscope.files >> /cscope.in.out >> /cscope.po.out >> -.clang_complete >> +.* >> >> /Documentation/Makefile >> /Documentation/*.html >> -- >> 2.21.0 >>
On Wed, Feb 27, 2019 at 07:29:13PM +0800, Qu Wenruo wrote: > On 2019/2/27 下午7:22, Mike Fleetwood wrote: > > On Wed, 27 Feb 2019 at 05:16, Qu Wenruo <wqu@suse.com> wrote: > >> > >> A lot of editor/IDE related config files are hidden files, like .vimrc > >> or .clang_complete. > >> > >> Instead of adding gitignore entry for each editor/IDE, just ignore all > >> hidden files like what kernel does. > > I think you mean: > > files starting with ".", like ls does by default without the -a flag. > > When I punched the words "linux hidden file" into google, I got quite a > lot of pages showing 'In the Linux operating system, a hidden file is > any file that begins with a "."' > > So I think the words "hidden files" should be more or less OK? I think the word "dotfiles" is ok.
On Wed, 27 Feb 2019 at 11:44, Stefan Traby <stefan@hello-penguin.com> wrote: > > On Wed, Feb 27, 2019 at 07:29:13PM +0800, Qu Wenruo wrote: > > On 2019/2/27 下午7:22, Mike Fleetwood wrote: > > > On Wed, 27 Feb 2019 at 05:16, Qu Wenruo <wqu@suse.com> wrote: > > >> > > >> A lot of editor/IDE related config files are hidden files, like .vimrc > > >> or .clang_complete. > > >> > > >> Instead of adding gitignore entry for each editor/IDE, just ignore all > > >> hidden files like what kernel does. > > > I think you mean: > > > files starting with ".", like ls does by default without the -a flag. > > > > When I punched the words "linux hidden file" into google, I got quite a > > lot of pages showing 'In the Linux operating system, a hidden file is > > any file that begins with a "."' > > > > So I think the words "hidden files" should be more or less OK? My main point was that you said "hidden files like what kernel does" which is not true. > > I think the word "dotfiles" is ok. Shortening to "just ignore all dotfiles" would be a good choice.
diff --git a/.gitignore b/.gitignore index d9f022c48c7d..aadf9ae77d41 100644 --- a/.gitignore +++ b/.gitignore @@ -64,7 +64,7 @@ /cscope.files /cscope.in.out /cscope.po.out -.clang_complete +.* /Documentation/Makefile /Documentation/*.html
A lot of editor/IDE related config files are hidden files, like .vimrc or .clang_complete. Instead of adding gitignore entry for each editor/IDE, just ignore all hidden files like what kernel does. Signed-off-by: Qu Wenruo <wqu@suse.com> --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)