Skip to content

Commit

Permalink
remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed Feb 5, 2024
1 parent 1a8a5dd commit e734557
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/gitparse/gitparse.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,6 @@ func (d *Diff) finalize() error { return d.contentWriter.CloseForWriting() }
// Commit contains commit header info and diffs.
type Commit struct {
Hash string
// Author string
// Date time.Time
Size int // in bytes
}

Expand Down Expand Up @@ -424,7 +422,6 @@ func (c *Parser) FromReader(ctx context.Context, stdOut io.Reader, diffChan chan
case isMessageLine(isStaged, latestState, line):
latestState = MessageLine

// currentCommit.Message.Write(line[4:]) // Messages are indented with 4 spaces.
currentDiff.CommitMessage.Write(line[4:])
case isMessageEndLine(isStaged, latestState, line):
latestState = MessageEndLine
Expand All @@ -450,7 +447,6 @@ func (c *Parser) FromReader(ctx context.Context, stdOut io.Reader, diffChan chan
diffChan <- currentDiff
}
currentDiff = diff()
// currentDiff = NewDiff(withCustomContentWriter(c.contentWriter()))
case isModeLine(latestState, line):
latestState = ModeLine
// NoOp
Expand Down

0 comments on commit e734557

Please sign in to comment.