Beispiel #1
0
 /// <summary>
 /// Reads a <see cref="ITextFileInfo"/> the <see cref="CurrentBranchName"/>.
 /// </summary>
 /// <param name="m">The monitor to use.</param>
 /// <param name="fileName">The path and file name (root based).</param>
 /// <returns>The text file info (null if it can't be read) and its path.</returns>
 public static (ITextFileInfo, NormalizedPath Path) GetTextFileInfo(this GitFolder @this, IActivityMonitor m, string fileName)
 {
     var(FileInfo, Path) = GetFileInfo(@this, fileName);
     return(FileInfo?.AsTextFileInfo(ignoreExtension: true), Path);
 }