Module gix_filter::eol
source · Expand description
convert line endings in buffers
Modules§
Structs§
- Git Configuration that affects how CRLF conversions are applied.
- Statistics about a buffer that helps to safely perform EOL conversions
Enums§
- The combination of
crlf,textandeolattributes into one neat package. - Possible states for the
core.autocrlf. - The kind of end of lines to set.
Functions§
- 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. If renormalization is desired, let it returnOk(None)at all times to not let it have any influence over the outcome of this function. Ifround_trip_checkis notNone, round-tripping will be validated and handled accordingly. - Convert all
\ninsrctocrlfifdigestandconfigindicate it, returningtrueifbufholds the result, orfalseif no change was made after all.