[go: up one dir, main page]

Module eol

Source
Expand description

convert line endings in buffers

Re-exports§

pub use convert_to_worktree::convert_to_worktree;

Modules§

convert_to_git
convert_to_worktree

Structs§

Configuration
Git Configuration that affects how CRLF conversions are applied.
Stats
Statistics about a buffer that helps to safely perform EOL conversions

Enums§

AttributesDigest
The combination of crlf, text and eol attributes into one neat package.
AutoCrlf
Possible states for the core.autocrlf.
Mode
The kind of end of lines to set.

Functions§

convert_to_git
Given a src buffer, change it git (\n) line endings and store the result in buf. Return true if buf was written or false if nothing had to be done. Depending on the state in buf, index_object is called to write the version of src as stored in the index into the buffer and if it is a blob, or return Ok(None) if no such object exists.