Exemplo n.º 1
0
 public void WriteFileLine(FileReportLine line)
 {
     if (!line.Ignored)
     {
         writer.WriteLine($"{line.GetShortCommitId()} {line.LineNumber}) {line.LineContents.TrimStart('\t')}");
     }
 }
Exemplo n.º 2
0
        public void WriteFileLine(FileReportLine line)
        {
            string tr_class = line.Ignored ? "ignored-hidden" : $"commit-{line.CommitId}";

            this.writer.WriteLine($@"
    <tr class=""{tr_class}"">
		<td class=""commit-id"">
            <a href=""https://github.com/git/git/commit/{line.CommitId}"">
                {line.GetShortCommitId()}
            </a>
        </td>
        <td class=""line-number"">
            <a href=""https://github.com/git/git/tree/{line.TargetCommitId}/{line.FileName}#L{line.LineNumber}"">
			    {line.LineNumber}
            </a>
		</td>
		<td class=""code"">
			{Sanitize(line.LineContents)}
		</td>
	</tr>"    );
        }