From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] .gitignore: explicitly allow paths
Date: Mon, 02 Jan 2023 16:42:44 +0100 [thread overview]
Message-ID: <20230102154244.LL9Xka__HRQqbR4xZ7cOktg0dpJh3-53G4eRLqsT3TI@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41383@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 489 bytes --]
There is an updated pull request by paper42 against master on the void-packages repository
https://github.com/paper42/void-packages new-gitignore
https://github.com/void-linux/void-packages/pull/41383
.gitignore: explicitly allow paths
This prevents git from picking up masterdirs that don't happen to be named the usual way and more custom and temporary files that should not be tracked by git.
A patch file from https://github.com/void-linux/void-packages/pull/41383.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-new-gitignore-41383.patch --]
[-- Type: text/x-diff, Size: 908 bytes --]
From 1ad8d8c5cd3a3938c613db6d8e86e8509c64c5e9 Mon Sep 17 00:00:00 2001
From: Michal Vasilek <michal@vasilek.cz>
Date: Sat, 31 Dec 2022 17:23:01 +0100
Subject: [PATCH] .gitignore: explicitly allow paths
This prevents git from picking up masterdirs that don't happen to be
named the usual way and more custom and temporary files that should not
be tracked by git.
---
.gitignore | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/.gitignore b/.gitignore
index 958f644eee94..287be809543a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,13 +2,18 @@
*.swp
*~
\#*#
-*.o
-masterdir*
-hostdir*
-masterdir*/
-hostdir*/
+
+# exclude everything in root except files and directories from void-packages
+/*
+!/CONTRIBUTING.md
+!/COPYING
+!/Manual.md
+!/README.md
+!/common
+!/etc
+!/srcpkgs
+!/xbps-src
etc/conf
etc/conf.*
etc/virtual
etc/xbps.d/custom
-.xbps-checkvers*.plist
next prev parent reply other threads:[~2023-01-02 15:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-31 16:24 [PR PATCH] " paper42
2022-12-31 17:04 ` [PR PATCH] [Updated] " paper42
2023-01-02 15:16 ` leahneukirchen
2023-01-02 15:42 ` paper42 [this message]
2023-01-02 15:43 ` paper42
2023-01-02 20:37 ` [PR PATCH] [Merged]: " paper42
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=20230102154244.LL9Xka__HRQqbR4xZ7cOktg0dpJh3-53G4eRLqsT3TI@z \
--to=paper42@users.noreply.github.com \
--cc=ml@inbox.vuxu.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;
as well as URLs for NNTP newsgroup(s).