0

Add a tip to speed up git

Recommend the git option `feature.manyFiles` due to the size of the Chromium repo.

Bug: None
Change-Id: I7da21057260382bc11b2d26d4e128ed02d368cae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4708749
Reviewed-by: Vignesh Shenvi <vshenvi@google.com>
Commit-Queue: Hong Xu <xuhong@google.com>
Reviewed-by: Leonid Baraz <lbaraz@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1173772}
This commit is contained in:
Hong Xu
2023-07-22 00:14:11 +00:00
committed by Chromium LUCI CQ
parent 54b80cba8b
commit 747ba9f8ad

@ -29,6 +29,16 @@ The following resources can provide background on how Git works:
understand Git, here's a cheat sheet to quickly remind you of all the understand Git, here's a cheat sheet to quickly remind you of all the
commands you need. commands you need.
## Optimizing (Speeding up) Git for a Large Repository
Git has numerous options, among which some are intended to optimize for large
repositories.
[feature.manyFiles](https://git-scm.com/docs/git-config#Documentation/git-config.txt-featuremanyFiles)
is a convenient option that turns on the group of options that optimize for
large repositories. Run the following inside the Chromium git repository:
git config feature.manyFiles true
## Configuring the output of "git log" ## Configuring the output of "git log"
By default, the date that "git log" displays is the "author date." In Chromium, By default, the date that "git log" displays is the "author date." In Chromium,