* [PATCH v2] btrfs-progs: gitignore: Ignore hidden files
@ 2019-02-28 2:22 Qu Wenruo
2019-03-05 12:27 ` David Sterba
0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2019-02-28 2:22 UTC (permalink / raw)
To: linux-btrfs
A lot of editor/IDE related config files are dotfiles, like .vimrc
or .clang_complete.
Instead of adding gitignore entry for each editor/IDE, just ignore all
dotfiles.
Signed-off-by: Qu Wenruo <wqu@suse.com>
---
changelog
v2:
- Change "hidden files" to "dotfiles" in the commit message.
- No longer mention the kernel gitignore behavior in the commit message.
---
.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] 4+ messages in thread
* Re: [PATCH v2] btrfs-progs: gitignore: Ignore hidden files
2019-02-28 2:22 [PATCH v2] btrfs-progs: gitignore: Ignore hidden files Qu Wenruo
@ 2019-03-05 12:27 ` David Sterba
2019-03-05 12:35 ` Qu Wenruo
0 siblings, 1 reply; 4+ messages in thread
From: David Sterba @ 2019-03-05 12:27 UTC (permalink / raw)
To: Qu Wenruo; +Cc: linux-btrfs
On Thu, Feb 28, 2019 at 10:22:06AM +0800, Qu Wenruo wrote:
> A lot of editor/IDE related config files are dotfiles, like .vimrc
> or .clang_complete.
>
> Instead of adding gitignore entry for each editor/IDE, just ignore all
> dotfiles.
Fortunatelly it still works for tracked dotfiles like .travis.yml and
.gitignore itself.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] btrfs-progs: gitignore: Ignore hidden files
2019-03-05 12:27 ` David Sterba
@ 2019-03-05 12:35 ` Qu Wenruo
2019-03-05 13:37 ` David Sterba
0 siblings, 1 reply; 4+ messages in thread
From: Qu Wenruo @ 2019-03-05 12:35 UTC (permalink / raw)
To: dsterba, Qu Wenruo, linux-btrfs
[-- Attachment #1.1: Type: text/plain, Size: 585 bytes --]
On 2019/3/5 下午8:27, David Sterba wrote:
> On Thu, Feb 28, 2019 at 10:22:06AM +0800, Qu Wenruo wrote:
>> A lot of editor/IDE related config files are dotfiles, like .vimrc
>> or .clang_complete.
>>
>> Instead of adding gitignore entry for each editor/IDE, just ignore all
>> dotfiles.
>
> Fortunatelly it still works for tracked dotfiles like .travis.yml and
> .gitignore itself.
Didn't notice .travis.yml, but indeed i should notice .gitignore.
Any idea what's the correct way to handle them?
Just current .* or adding each possible dotfile?
Thanks,
Qu
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2] btrfs-progs: gitignore: Ignore hidden files
2019-03-05 12:35 ` Qu Wenruo
@ 2019-03-05 13:37 ` David Sterba
0 siblings, 0 replies; 4+ messages in thread
From: David Sterba @ 2019-03-05 13:37 UTC (permalink / raw)
To: Qu Wenruo; +Cc: dsterba, Qu Wenruo, linux-btrfs
On Tue, Mar 05, 2019 at 08:35:39PM +0800, Qu Wenruo wrote:
>
>
> On 2019/3/5 下午8:27, David Sterba wrote:
> > On Thu, Feb 28, 2019 at 10:22:06AM +0800, Qu Wenruo wrote:
> >> A lot of editor/IDE related config files are dotfiles, like .vimrc
> >> or .clang_complete.
> >>
> >> Instead of adding gitignore entry for each editor/IDE, just ignore all
> >> dotfiles.
> >
> > Fortunatelly it still works for tracked dotfiles like .travis.yml and
> > .gitignore itself.
>
> Didn't notice .travis.yml, but indeed i should notice .gitignore.
>
> Any idea what's the correct way to handle them?
> Just current .* or adding each possible dotfile?
I've left .* and tested that changes to .gitignore or .travis.yml are
recognized (diff, commit).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-03-05 13:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-28 2:22 [PATCH v2] btrfs-progs: gitignore: Ignore hidden files Qu Wenruo
2019-03-05 12:27 ` David Sterba
2019-03-05 12:35 ` Qu Wenruo
2019-03-05 13:37 ` David Sterba
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).