private void Reset()
 {
     sb               = new StringBuilder();
     phase            = ProcessingPhase.CommitHash;
     authorName       = null;
     mergeA           = null;
     mergeB           = null;
     changes          = new List <GitStatusEntry>();
     authorEmail      = null;
     summary          = null;
     descriptionLines = new List <string>();
     commitId         = null;
     time             = null;
     newlineCount     = 0;
     committerName    = null;
     committerEmail   = null;
     committerTime    = null;
     seenBodyEnd      = false;
 }
Exemple #2
0
 /// <summary>
 /// Starts the next phase of the given Logshark run and writes any associated metadata.
 /// </summary>
 /// <param name="phaseToStart">The phase to start.</param>
 /// <param name="context">The current Logshark run.</param>
 /// <param name="metadataWriter">The metadata writer responsible for tracking the state of the run.</param>
 private void StartPhase(ProcessingPhase phaseToStart, LogsharkRunContext context, ILogsharkRunMetadataWriter metadataWriter)
 {
     context.CurrentPhase = phaseToStart;
     metadataWriter.WriteMetadata(context);
 }
Exemple #3
0
 protected void StartPhase(LogsharkRequest request, ProcessingPhase phaseToStart)
 {
     request.RunContext.CurrentPhase = phaseToStart;
     metadataWriter.UpdateMetadata(request);
 }