You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a script we have shared directly with customers before to
understand the scale of the monorepos. This now stores it in our
repository and documents it under our monorepo documentation.
Test Plan: ran git-stats on the sourcegraph repo. Note the links in the
documentation will only work once this PR has landed.
Copy file name to clipboardExpand all lines: doc/admin/monorepo.md
+27Lines changed: 27 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,3 +24,30 @@ Sourcegraph's code search index scales horizontally with the number of files bei
24
24
Sourcegraph clones code from your code host via the usual `git clone` or `git fetch` commands. Some organisations use custom `git` binaries or commands to speed up these operations. Sourcegraph supports using alternative git binaries to allow cloning. This can be done by inheriting from the `gitserver` docker image and installing the custom `git` onto the `$PATH`.
25
25
26
26
Some monorepos use a custom command for `git fetch` to speed up fetch. Sourcegraph provides the `experimentalFeatures.customGitFetch` site setting to specify the custom command.
27
+
28
+
## Statistics
29
+
30
+
You can help the Sourcegraph developers understand the scale of your monorepo by sharing some statistics with the team. The bash script [`git-stats`](https://github.com/sourcegraph/sourcegraph/blob/main/dev/git-stats) when run in your git repository will calculate these statistics.
0 commit comments