Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/omind/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ class MeshError(Exception):
#: Merge-driver routing for the OMI repo. Notes get the field-level omi
#: driver; generated files are never merged (ours + regenerate); journals and
#: tombstones are append-only line sets, so git's union driver is exact.
#:
#: ``* -text`` is load-bearing, not tidiness. Git for Windows ships
#: ``core.autocrlf=true`` at the *system* level, so without this line a Windows
#: peer would get CRLF working-tree checkouts of every note. omind writes LF on
#: every platform (``store._atomic_write``), so the vault would then disagree
#: with itself: ``note_version`` digests — raw-byte hashes — would differ across
#: the fleet for identical notes, and every index would rebuild on that peer.
#: ``-text`` disables git's translation repo-wide and overrides ``autocrlf``.
#: Deleting it breaks nothing on Linux or macOS, which is what makes it easy to
#: delete.
GITATTRIBUTES = """\
* -text
*.md merge=omi
Expand Down