Re: [Mingw-w64-public] [PATCH] winpthreads: add a .gitignore

2024-04-25 Thread LIU Hao

在 2024-04-25 20:36, Antonin Décimo 写道:

Do you wish to create a separate repository for winpthreads, and commit 
.gitignore there?


We're maintaining a separate repository at
https://github.com/ocaml/winpthreads, with instructions on how to
embed the subtree as a submodule in the ocaml sources at
https://github.com/ocaml/ocaml/blob/trunk/HACKING.adoc#the-winpthreads-library-for-the-msvc-port.
The subtree with these instructions allow us to keep the same commit
id as the upstream in our winpthreads submodule. Fancy.


Wow, haven't heard of `git subtree` at all! Thanks for the idea. Pushed to 
master now.


May I ask: it doesn't seem that winpthreads, or other
mingw-w64-libraries are tied to a specific commit of mingw. Maybe they
don't need to be in the mingw-w64 "monorepo"? I understand it wouldn't
be easy if they're used for instance to build mingw.


This has been the case since SVN days. One advantage of SVN over Git is that it allows checking out 
subdirectories, so this was not an issue. Not sure about the precise reason though.




--
Best regards,
LIU Hao



OpenPGP_signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] winpthreads: add a .gitignore

2024-04-25 Thread Antonin Décimo
> Do you wish to create a separate repository for winpthreads, and commit 
> .gitignore there?

We're maintaining a separate repository at
https://github.com/ocaml/winpthreads, with instructions on how to
embed the subtree as a submodule in the ocaml sources at
https://github.com/ocaml/ocaml/blob/trunk/HACKING.adoc#the-winpthreads-library-for-the-msvc-port.
The subtree with these instructions allow us to keep the same commit
id as the upstream in our winpthreads submodule. Fancy.

> In mingw-w64 the top-level .gitignore applies and there is no need to 
> maintain the same one in a
> subdirectory. If you would like to fork a separate directory, you can just 
> copy the top-level one.
> (BTW I don't think it's necessary; you can fork mingw-w64 as a whole, and it 
> makes rebasing
> automatic and easier.)

To be clear, this patch is a copy of the top-level gitignore.

May I ask: it doesn't seem that winpthreads, or other
mingw-w64-libraries are tied to a specific commit of mingw. Maybe they
don't need to be in the mingw-w64 "monorepo"? I understand it wouldn't
be easy if they're used for instance to build mingw.

Best regards,
-- Antonin


___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


Re: [Mingw-w64-public] [PATCH] winpthreads: add a .gitignore

2024-04-24 Thread LIU Hao

在 2024-04-24 21:43, Antonin Décimo 写道:

This helps when vendoring winpthreads as a subtree.
---

I've just copied the root .gitignore. Works as expected.

  mingw-w64-libraries/winpthreads/.gitignore | 41 ++
  1 file changed, 41 insertions(+)
  create mode 100644 mingw-w64-libraries/winpthreads/.gitignore



Do you wish to create a separate repository for winpthreads, and commit 
.gitigoore there?

In mingw-w64 the top-level .gitignore applies and there is no need to maintain a same one in a 
subdirectory. If you would like to fork a separate directory, you can just copy the top-level one. 
(BTW I don't think it's necessary; you can fork mingw-w64 as a whole, and it makes rebasing 
automatic and easier.)



--
Best regards,
LIU Hao



OpenPGP_signature.asc
Description: OpenPGP digital signature
___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


[Mingw-w64-public] [PATCH] winpthreads: add a .gitignore

2024-04-24 Thread Antonin Décimo
This helps when vendoring winpthreads as a subtree.
---

I've just copied the root .gitignore. Works as expected.

 mingw-w64-libraries/winpthreads/.gitignore | 41 ++
 1 file changed, 41 insertions(+)
 create mode 100644 mingw-w64-libraries/winpthreads/.gitignore

diff --git a/mingw-w64-libraries/winpthreads/.gitignore 
b/mingw-w64-libraries/winpthreads/.gitignore
new file mode 100644
index 0..3d1022348
--- /dev/null
+++ b/mingw-w64-libraries/winpthreads/.gitignore
@@ -0,0 +1,41 @@
+# Temporary files
+*~
+.*
+
+# Compiled files
+*.o
+*.a
+*.so
+*.out
+*.exe
+*.dll
+*.lo
+*.la
+*.gch
+*.obj
+*.res
+
+# Specialized files
+autom4te.cache
+config.cache
+Makefile
+libtool
+config.status
+config.h
+confdefs.h
+stamp-h1
+
+# Autotools test results
+*.trs
+*.test
+*.test.exe
+*.log
+
+# Merge conflict files
+*.orig
+*.rej
+
+# Others
+*.swp
+*.tar
+*.tar.*
-- 
2.44.0



___
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public