Class: GitAuto::Formatters::DiffSummarizer
- Inherits:
-
Object
- Object
- GitAuto::Formatters::DiffSummarizer
- Defined in:
- lib/git_auto/formatters/diff_summarizer.rb
Defined Under Namespace
Classes: FileChange
Instance Method Summary collapse
Instance Method Details
#summarize(diff) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/git_auto/formatters/diff_summarizer.rb', line 8 def summarize(diff) return "No changes" if diff.empty? file_changes = parse_diff(diff) generate_summary(file_changes) end |