Skip to content

Commit 38a27da

Browse files
committed
Update docs
1 parent c48f9bb commit 38a27da

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ codeprints-analyzer
4141
You can set the start- and end-date of the output.
4242

4343
```
44-
docker run -v `pwd`:/repo codeprints/analyzer --after "2020-12-24" --before "2021-02-10"
44+
docker run -v `pwd`:/repo codeprints/analyzer run --after "2020-12-24" --before "2021-02-10"
4545
```
4646

4747
The syntax is exactly the same that `git` also uses.
@@ -53,14 +53,27 @@ If you work in a bigger team, you might want to filter the contributions by
5353
author. Here is how:
5454

5555
```
56-
docker run -v `pwd`:/repo codeprints/analyzer --author "Matthias" --author "Octocat"
56+
docker run -v `pwd`:/repo codeprints/analyzer run --author "Matthias" --author "Octocat"
5757
```
5858

5959
To get a list of all author names, run `git shortlog --summary --numbered --email`.
6060

6161
(You can also filter by committers. The difference is subtle, but in contrast to authors, these are the
6262
contributors who pushed/committed a patch to the repository.)
6363

64+
## Merging multiple codeprints output files
65+
66+
Do you have multiple repositories that you want to analyze?
67+
No problem! Just run the tool in every repository folder.
68+
After that, copy the files into a single folder and run the following command:
69+
70+
```
71+
docker run -v `pwd`:/repo codeprints/analyzer merge
72+
```
73+
74+
This will merge all codeprints\_\*.json files in the `repo` directory into one file.
75+
(It will accumulate all contribution counts for each day.)
76+
6477
## More options
6578

6679
To get an exhaustive list of options, run

0 commit comments

Comments
 (0)