Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] .gitignore: explicitly allow paths
@ 2022-12-31 16:24 paper42
  2022-12-31 17:04 ` [PR PATCH] [Updated] " paper42
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: paper42 @ 2022-12-31 16:24 UTC (permalink / raw)
  To: ml

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

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

end of thread, other threads:[~2023-01-02 20:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-31 16:24 [PR PATCH] .gitignore: explicitly allow paths paper42
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

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