Expand description
convert line endings in buffers
Re-exports§
pub use convert_to_worktree::convert_to_worktree;
Modules§
Structs§
- Configuration
- Git Configuration that affects how CRLF conversions are applied.
- Stats
- Statistics about a buffer that helps to safely perform EOL conversions
Enums§
- Attributes
Digest - The combination of
crlf,textandeolattributes into one neat package. - Auto
Crlf - Possible states for the
core.autocrlf. - Mode
- The kind of end of lines to set.
Functions§
- convert_
to_ git - Given a
srcbuffer, change itgit(\n) line endings and store the result inbuf. Returntrueifbufwas written orfalseif nothing had to be done. Depending on the state inbuf,index_objectis called to write the version ofsrcas stored in the index into the buffer and if it is a blob, or returnOk(None)if no such object exists.