Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/git/stats/git.go')
-rw-r--r--internal/git/stats/git.go29
1 files changed, 17 insertions, 12 deletions
diff --git a/internal/git/stats/git.go b/internal/git/stats/git.go
index 5ec5dace0..ce9794c72 100644
--- a/internal/git/stats/git.go
+++ b/internal/git/stats/git.go
@@ -40,20 +40,25 @@ func LogObjectsInfo(ctx context.Context, repo git.RepositoryExecutor) {
}
}
-/* readObjectInfoStatistic parses output of 'git count-objects -v' command and represents it as dictionary
+/*
+ readObjectInfoStatistic parses output of 'git count-objects -v' command and represents it as dictionary
+
current supported format is:
- count: 12
- packs: 2
- size-garbage: 934
- alternate: /some/path/to/.git/objects
- alternate: "/some/other path/to/.git/objects"
+
+ count: 12
+ packs: 2
+ size-garbage: 934
+ alternate: /some/path/to/.git/objects
+ alternate: "/some/other path/to/.git/objects"
+
will result in:
- {
- "count": 12,
- "packs": 2,
- "size-garbage": 934,
- "alternate": ["/some/path/to/.git/objects", "/some/other path/to/.git/objects"]
- }
+
+ {
+ "count": 12,
+ "packs": 2,
+ "size-garbage": 934,
+ "alternate": ["/some/path/to/.git/objects", "/some/other path/to/.git/objects"]
+ }
*/
func readObjectInfoStatistic(reader io.Reader) (map[string]interface{}, error) {
stats := map[string]interface{}{}