chore remove emacs prop lines from all project files

Strip -*- mode: tuareg -*- and -*- mode: lisp -*- lines from all .ml, .mli, and dune files. Also remove the Local Variables block from dune-project. The emacs modeline detection *code* in syntax.ml is preserved (it detects other people's mode lines, it doesn't declare one itself).

Commit
9df23bb77b646bcc89ba869bde2624cf477354ab
Author
Marius Peter <dev@marius-peter.com>
Author date
Committer
Marius Peter <dev@marius-peter.com>
Committer date
Changed files
bin/config_writer.ml
index a92f082d..ef7ad3b7 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** The [ogit-write-config] executable.
4 2
5 3 Writes a configuration file containing every variable at its default value,
bin/dune
index a9eb0488..b9097285 100644..100644
@@ -1,5 +1,3 @@
1 Removed: ;;; -*- mode: lisp; -*-
2 Removed:
3 1 (executables
4 2 (names main config_writer)
5 3 (public_names ogit ogit-write-config)
bin/main.ml
index e69e2d1f..5066a6ff 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** The [ogit] executable.
4 2
5 3 Parses arguments and delegates to {!Ogit.Main.run}. [--git-project-root]
dune-project
index 7fa7289e..20338650 100644..100644
@@ -31,7 +31,3 @@
31 31 (yojson (>= 2.0.0)))
32 32 (tags
33 33 (git "web interface")))
34 Removed:
35 Removed: ;; Local Variables:
36 Removed: ;; mode: lisp
37 Removed: ;; End:
lib/config.ml
index 2c437152..66a69d4d 100644..100644
@@ -1,6 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed: (* -*- mode: tuareg; -*- *)
3 Removed:
4 1 (** Reading and validating the TOML configuration.
5 2
6 3 The file is looked up at [$OGIT_CONFIG], then
lib/dune
index 5d3a5e54..262cd09b 100644..100644
@@ -1,5 +1,3 @@
1 Removed: ;; -*- mode: lisp; -*-
2 Removed:
3 1 (include_subdirs unqualified)
4 2
5 3 (library
lib/handlers.ml
index db6b6a04..fa6eeaa7 100644..100644
@@ -1,6 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed: (* -*- mode: tuareg; -*- *)
3 Removed:
4 1 (** Request handlers: the seam between Git data and rendered pages.
5 2
6 3 Each handler opens exactly one repository context, reads what its page
lib/highlight.ml
index d4d4df49..d67a7bb7 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Server-side syntax highlighting engine.
4 2
5 3 Tokenizes source code using TextMate grammars (via hilite) and produces
lib/highlight_grammars.ml
index 4fe39deb..8b8ed1d3 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Registry of bundled TextMate grammars for syntax highlighting.
4 2
5 3 Loads grammars embedded at build time via [ocaml-crunch] and registers them
lib/line_diff.ml
index cf94ae53..f204fd2b 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: neocaml; -*- *)
2 Removed:
3 1 (** Line-oriented diffs between two blobs.
4 2
5 3 Computes a longest-common-subsequence diff and groups the result into hunks
lib/list_ext.ml
index 8b109d47..629c930e 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** List utilities not in the OCaml 5.2 stdlib. *)
4 2
5 3 let rec take n = function
lib/main.ml
index 2b9a88da..8b434644 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Server startup.
4 2
5 3 Loads configuration, then hands the resulting routes to Dream. Startup fails
lib/resolvers.ml
index 7e092d44..cb2b5965 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 module Store = Git_unix.Store
4 2 open Lwt_result.Syntax
5 3
lib/resolvers.mli
index e96d1e92..5cde55ca 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Git data access layer. *)
4 2
5 3 module Store = Git_unix.Store
lib/routes.ml
index 6f09b9b7..35855e3d 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** URL paths, in both directions.
4 2
5 3 One {!t} value describes a page, and the same value both generates a link
lib/static_handler.ml
index 55a93642..8fc56fc2 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Serving the static assets embedded at build time.
4 2
5 3 Assets are compiled into the executable by [ocaml-crunch] (see the rule in
lib/syntax.ml
index 0a76c2b7..e5ff22a4 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Guessing a file's language for syntax highlighting.
4 2
5 3 Detection is best-effort and purely advisory: the blob renders identically
lib/views.ml
index f15db543..62d2e2a8 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** View layer — re-exports layout and page modules. *)
4 2
5 3 let error_page = Error.render
lib/views/components.ml
index c442a620..a522299c 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Ogit's vocabulary of page parts.
4 2
5 3 Where {!Ui} supplies generic building blocks, this module names the parts
lib/views/error.ml
index 758231ce..4257bccc 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Error pages.
4 2
5 3 These are deliberately self-contained rather than going through {!Layout}:
lib/views/layout.ml
index 1fec189f..e3b3e001 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** The page shell: everything that surrounds a page's own content.
4 2
5 3 Pages hand this module a {!body_data} description and receive a complete
lib/views/repo.ml
index 861acbc4..05e0ea7e 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** The repository pages: summary, commit list, file tree, blob, commit detail,
4 2 branches and tags.
5 3
lib/views/root.ml
index 2890ec5d..eef39b7f 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** The repository list, and the project directory pages that share its shape.
4 2
5 3 A project directory is the same page scoped to a subtree, so both are
lib/views/time_format.ml
index 2ec23b72..79edc471 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Formatting Git dates for display.
4 2
5 3 Git records a commit date as a Unix timestamp plus the offset of the zone
lib/views/ui.ml
index 7ad72d4b..b3339958 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (* Implementation of the site building blocks. The API and its rationale are
4 2 documented in ui.mli; comments here cover implementation choices only.
5 3
lib/views/ui.mli
index 688aeca8..bae008a2 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Generic site building blocks.
4 2
5 3 This module is the only place in the view layer that names HTML elements. It
test/test_commit_parsing.ml
index a7fe313d..0be8d153 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Tests for commit message parsing and conventional commit type extraction.
4 2 These functions drive both the pill display and the commit type filter. *)
5 3
test/test_config.ml
index 864d0b98..bf35c67c 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Configuration loading: round-tripping, backward compatibility, and rejection
4 2 of malformed files and out-of-range values. *)
5 3
test/test_diff.ml
index f9c77348..528fdb94 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Tests for the line-level diff algorithm and hunk generation. *)
4 2
5 3 let test_line_diff () =
test/test_discovery.ml
index 9bd5605b..e2302ad6 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Repository discovery: bare and non-bare layouts, descriptions, and directory
4 2 listings. *)
5 3
test/test_dispatch.ml
index 074e34e4..aeb00527 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** URL dispatch: that {!Ogit.Routes.dispatch} recovers the intended repository
4 2 and action, including from malformed input. *)
5 3
test/test_helpers.ml
index 52873891..52ff9f71 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Shared test fixtures. *)
4 2
5 3 let rec remove_path path =
test/test_list_ext.ml
index 1d1662a5..b2ddfc31 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** The list helpers in {!Ogit.List_ext}. *)
4 2
5 3 let list_int = Alcotest.(list int)
test/test_ogit.ml
index 9bdc4bfa..a23087b2 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Test entry point. Registers every suite; add new suites here. *)
4 2
5 3 let () =
test/test_router.ml
index 601e38fd..47dfc814 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Router error handling: that invalid names, hashes and missing objects
4 2 produce the intended failure category. *)
5 3
test/test_tree_paths.ml
index ffd216e9..0c3bf031 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Resolving paths within a Git tree, including unreachable objects. *)
4 2
5 3 open Test_helpers
test/test_validation.ml
index 8c08bf7b..3620631a 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** Input validation for repository names, hashes, branch names and tag names.
4 2 *)
5 3
test/test_views.ml
index 164f4c2d..972a4f99 100644..100644
@@ -1,5 +1,3 @@
1 Removed: (* -*- mode: tuareg; -*- *)
2 Removed:
3 1 (** View rendering: currently that the error page carries the requested HTTP
4 2 status. *)
5 3