Skip to content

Commit

Permalink
README: add 'Git cloning tips'
Browse files Browse the repository at this point in the history
(See discussion in #13)
  • Loading branch information
gasche authored and hpjansson committed May 7, 2021
1 parent 525c66e commit 43f3d48
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,17 @@ Guide to arguments:
--to year
Optional. Last year to plot.
```


## Git cloning tips

We support ingestion from both bare and non-bare repositories:

git clone https://git.example.com
git clone --bare https://git.example.com

Another option that can massively reduce data transfer is `--filter=blob:none`, which will only clone commit metadata, not the files themselves.

git clone --bare --filter=blob:none https://git.example.com

Note that this is not supported by all git servers (cloning may fail). Using this mode also prevents the use of the `--unit changes` option (counting the number of changed lines), or in general inspecting `--stat` output from the commit database.

0 comments on commit 43f3d48

Please sign in to comment.