Skip to content

Conversation

@steffen
Copy link
Owner

@steffen steffen commented May 9, 2025

No description provided.

@steffen steffen force-pushed the add-largest-directories branch from b37f1ec to b2801a4 Compare May 12, 2025 12:50
@steffen steffen marked this pull request as ready for review May 12, 2025 14:09
Copilot AI review requested due to automatic review settings May 12, 2025 14:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds a new display section for the largest directories and wires it into the main output, along with an example update and CI tweak.

  • Introduces PrintLargestDirectories in pkg/display/display.go to list top root and subdirectories.
  • Calls PrintLargestDirectories in main.go before the existing largest files output.
  • Updates fixture and CI workflow accordingly.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
pkg/display/display.go New function to compute and print largest directories
main.go Inserted call to the new directory display function
fixtures/git-metrics.md Added sample output for the largest directories section
.github/workflows/ci.yml Simplified the integration test step
Comments suppressed due to low confidence (1)

pkg/display/display.go:18

  • [nitpick] Consider adding unit tests for PrintLargestDirectories to validate aggregation, sorting, and truncation behavior across various directory structures.
// PrintLargestDirectories prints the largest root and subdirectories by size and object count

steffen and others added 3 commits May 12, 2025 16:20
@steffen steffen merged commit 6f2d966 into main May 12, 2025
7 checks passed
@steffen steffen deleted the add-largest-directories branch May 12, 2025 14:34
steffen added a commit that referenced this pull request May 12, 2025
Update examples with changes from #27 and #30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants