From 2fa9e45ac4d6a6f9b690c4a11c415d5f0d2d8ae6 Mon Sep 17 00:00:00 2001 From: Idir Lankri Date: Thu, 7 Apr 2022 15:59:59 +0200 Subject: [PATCH 1/2] OCaml.gitignore: Make a comment a bit more precise Resources: - https://github.com/ocaml/ocamlbuild/blob/master/manual/manual.adoc#110-source-and-build-directories-module-paths-include-paths - https://dune.readthedocs.io/en/stable/usage.html#custom-build-directory --- OCaml.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OCaml.gitignore b/OCaml.gitignore index a18e0840..d134abd5 100644 --- a/OCaml.gitignore +++ b/OCaml.gitignore @@ -8,7 +8,7 @@ *.cmxs *.cmxa -# ocamlbuild working directory +# ocamlbuild and Dune default working directory _build/ # ocamlbuild targets From 7b2ef3fdff128ba65c4746de3c0b0f04657ebd5b Mon Sep 17 00:00:00 2001 From: Idir Lankri Date: Thu, 7 Apr 2022 16:15:24 +0200 Subject: [PATCH 2/2] OCaml.gitignore: Ignore binary files containing info about compilation See https://ocaml.org/manual/comp.html#s:comp-overview. --- OCaml.gitignore | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/OCaml.gitignore b/OCaml.gitignore index d134abd5..250caf74 100644 --- a/OCaml.gitignore +++ b/OCaml.gitignore @@ -8,6 +8,13 @@ *.cmxs *.cmxa +# Files containing detailed information about the compilation (generated +# by `ocamlc`/`ocamlopt` when invoked using the option `-bin-annot`). +# These files are typically useful for code inspection tools +# (e.g. Merlin). +*.cmt +*.cmti + # ocamlbuild and Dune default working directory _build/