Skip to content

Commit a239c07

Browse files
mrewoolfg
authored andcommitted
Update docs
1 parent fac6c44 commit a239c07

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
@@ -43,7 +43,7 @@ codeprints-analyzer
4343
You can set the start- and end-date of the output.
4444

4545
```
46-
docker run -v `pwd`:/repo codeprints/analyzer --after "2020-12-24" --before "2021-02-10"
46+
docker run -v `pwd`:/repo codeprints/analyzer run --after "2020-12-24" --before "2021-02-10"
4747
```
4848

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

5757
```
58-
docker run -v `pwd`:/repo codeprints/analyzer --author "Matthias" --author "Octocat"
58+
docker run -v `pwd`:/repo codeprints/analyzer run --author "Matthias" --author "Octocat"
5959
```
6060

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

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

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

6881
To get an exhaustive list of options, run

0 commit comments

Comments
 (0)