title: How do I control line endings conversion with LibGit2Sharp?
body: <p>I am using LibGit2Sharp to access a remote Git repository. The scenario is as follows:</p>
  
  <ol>
  <li>Clone the repository from a remote URL using <code>Repository.Clone</code> method.</li>
  <li>Fetch from the remote repository using <code>Commands.Fetch</code> method.</li>
  <li>Navigate to a required commit by a tag <code>commit = repo.Tags["myTag"].PeeledTarget as Commit;</code></li>
  <li>Get the commit tree <code>tree = commit.Tree</code></li>
  <li>Navigate the tree and get a file blob <code>blob = tree["my path"].Target as Blob</code></li>
  <li>Get file contents from the blob <code>blob.GetContentStream()</code></li>
  </ol>
  
  <p>As a result I get the file text with Unix line endings, as it is stored in the repository. But I prefer to have Windows line endings in my local copy.</p>
  
  <p>I need to make Git automatically convert line endings for me, as it does with <code>core.autocrlf</code> config option. How do I do that with LibGit2Sharp?</p>