Class: GDK::Diagnostic::GitMaintenance
- Defined in:
- lib/gdk/diagnostic/git_maintenance.rb
Constant Summary collapse
- TITLE =
'Git Maintenance recommendation'
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#detail ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/gdk/diagnostic/git_maintenance.rb', line 12 def detail return if success? <<~MESSAGE We recommend enabling git-maintenance to avoid slowdowns of local git operations like fetch, pull, and checkout. To enable it, run `git maintenance start` in each repository: #{repos_without_git_maintenance.map { |dir| "git -C #{dir} maintenance start" }.join("\n")} MESSAGE end |
#success? ⇒ Boolean
8 9 10 |
# File 'lib/gdk/diagnostic/git_maintenance.rb', line 8 def success? repos_without_git_maintenance.empty? end |