diff mbox series

btrfs-progs: gitignore: Ignore hidden files

Message ID 20190227051602.28987-1-wqu@suse.com (mailing list archive)
State New, archived
Headers show
Series btrfs-progs: gitignore: Ignore hidden files | expand

Commit Message

Qu Wenruo Feb. 27, 2019, 5:16 a.m. UTC
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(-)

Comments

Mike Fleetwood Feb. 27, 2019, 11:22 a.m. UTC | #1
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
>
Qu Wenruo Feb. 27, 2019, 11:29 a.m. UTC | #2
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
>>
Stefan Traby Feb. 27, 2019, 11:43 a.m. UTC | #3
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.
Mike Fleetwood Feb. 27, 2019, 1:58 p.m. UTC | #4
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 mbox series

Patch

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