linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs-progs: gitignore: Ignore hidden files
@ 2019-02-27  5:16 Qu Wenruo
  2019-02-27 11:22 ` Mike Fleetwood
  0 siblings, 1 reply; 5+ messages in thread
From: Qu Wenruo @ 2019-02-27  5:16 UTC (permalink / raw)
  To: linux-btrfs

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(-)

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] btrfs-progs: gitignore: Ignore hidden files
  2019-02-27  5:16 [PATCH] btrfs-progs: gitignore: Ignore hidden files Qu Wenruo
@ 2019-02-27 11:22 ` Mike Fleetwood
  2019-02-27 11:29   ` Qu Wenruo
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Fleetwood @ 2019-02-27 11:22 UTC (permalink / raw)
  To: Qu Wenruo; +Cc: linux-btrfs

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
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] btrfs-progs: gitignore: Ignore hidden files
  2019-02-27 11:22 ` Mike Fleetwood
@ 2019-02-27 11:29   ` Qu Wenruo
  2019-02-27 11:43     ` Stefan Traby
  0 siblings, 1 reply; 5+ messages in thread
From: Qu Wenruo @ 2019-02-27 11:29 UTC (permalink / raw)
  To: Mike Fleetwood, Qu Wenruo; +Cc: linux-btrfs


[-- Attachment #1.1: Type: text/plain, Size: 1165 bytes --]



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
>>


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] btrfs-progs: gitignore: Ignore hidden files
  2019-02-27 11:29   ` Qu Wenruo
@ 2019-02-27 11:43     ` Stefan Traby
  2019-02-27 13:58       ` Mike Fleetwood
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Traby @ 2019-02-27 11:43 UTC (permalink / raw)
  To: Qu Wenruo; +Cc: Mike Fleetwood, Qu Wenruo, linux-btrfs

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.

-- 

  ciao - 
    Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] btrfs-progs: gitignore: Ignore hidden files
  2019-02-27 11:43     ` Stefan Traby
@ 2019-02-27 13:58       ` Mike Fleetwood
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Fleetwood @ 2019-02-27 13:58 UTC (permalink / raw)
  To: Stefan Traby; +Cc: Qu Wenruo, Qu Wenruo, linux-btrfs

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-27 13:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-27  5:16 [PATCH] btrfs-progs: gitignore: Ignore hidden files Qu Wenruo
2019-02-27 11:22 ` Mike Fleetwood
2019-02-27 11:29   ` Qu Wenruo
2019-02-27 11:43     ` Stefan Traby
2019-02-27 13:58       ` Mike Fleetwood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).