Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Linter updates.
  • Loading branch information
Scott Arbeit committed Apr 2, 2025
commit 469485b19698604c0d22ad7560dee4a039ab5e65
4 changes: 2 additions & 2 deletions git-sizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,12 @@ func mainImplementation(ctx context.Context, stdout, stderr io.Writer, args []st
if err != nil {
return fmt.Errorf("error getting Git directory path: %w", err)
}

gitDirSize, err := sizes.CalculateGitDirSize(gitDir)
if err != nil {
return fmt.Errorf("error calculating Git directory size: %w", err)
}

historySize.GitDirSize = gitDirSize

if jsonOutput {
Expand Down
4 changes: 2 additions & 2 deletions sizes/sizes.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ type HistorySize struct {

// The tree with the maximum expanded submodule count.
MaxExpandedSubmoduleCountTree *Path `json:"max_expanded_submodule_count_tree,omitempty"`
// The actual size of the .git directory on disk

// The actual size of the .git directory on disk.
GitDirSize counts.Count64 `json:"git_dir_size"`
}

Expand Down
Loading