Github messages for voidlinux
 help / color / mirror / Atom feed
From: paper42 <paper42@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] .gitignore: explicitly allow paths
Date: Sat, 31 Dec 2022 17:24:52 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41383@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 484 bytes --]

There is a new 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: 916 bytes --]

From a7e06b28aeda4da71b089b9d6f10b8f2c42874ff 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 | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/.gitignore b/.gitignore
index 958f644eee94..b250a982502a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,14 +1,18 @@
 *.swo
 *.swp
 *~
-\#*#
-*.o
-masterdir*
-hostdir*
-masterdir*/
-hostdir*/
+
+# exclude everything in root except files and directories from void-packages
+/*
+!/srcpkgs
+!/common
+!/CONTRIBUTING.md
+!/Manual.md
+!/README.md
+!/COPYING
+!/xbps-src
+!/etc
 etc/conf
 etc/conf.*
 etc/virtual
 etc/xbps.d/custom
-.xbps-checkvers*.plist

             reply	other threads:[~2022-12-31 16:24 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-31 16:24 paper42 [this message]
2022-12-31 17:04 ` [PR PATCH] [Updated] " paper42
2023-01-02 15:16 ` leahneukirchen
2023-01-02 15:42 ` [PR PATCH] [Updated] " paper42
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=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41383@inbox.vuxu.org \
    --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).