git-truck 1.8.2 → 1.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -25
- package/build/index.js +28 -28
- package/build/metafile.js.json +1 -1
- package/build/metafile.server.json +1 -1
- package/build/version.txt +1 -1
- package/cli.js +10 -10
- package/package.json +2 -2
- package/public/build/{manifest-11AE129A.js → manifest-D9405B7D.js} +1 -1
- package/public/build/routes/$repo.$-O2WULVCZ.js +35 -0
- package/public/build/routes/$repo.$-NSMH3Z34.js +0 -35
package/README.md
CHANGED
|
@@ -1,44 +1,53 @@
|
|
|
1
1
|
# Git Truck 🚛 · [](https://github.com/git-truck/git-truck/blob/main/LICENSE) [](https://www.npmjs.com/git-truck)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Git-Truck provides you with a truckload of visualizations for your git repository, and helps you find out if your project has a good [truck factor](https://www.agileadvice.com/2005/05/15/agilemanagement/truck-factor/):
|
|
3
|
+
Git-Truck is a tool that provides you with a truckload of visualizations for your git repository, and helps you find out if your project has a good [truck factor](https://www.agileadvice.com/2005/05/15/agilemanagement/truck-factor/).
|
|
6
4
|
|
|
7
|
-
| | |
|
|
5
|
+
| Git Truck can help you figure out: | |
|
|
8
6
|
|-|-|
|
|
9
|
-
|
|
|
10
|
-
|
|
|
11
|
-
|
|
|
7
|
+
| Where the files in your codebase that only have a single contributor are (i.e., truck-factor = 1) | <img width="1912" alt="image" src="https://github.com/git-truck/git-truck/assets/1959615/1cc20716-0927-4aba-8d7d-115626bc445f"> |
|
|
8
|
+
| How the various developers contribute to your codebase | <img width="1913" alt="image" src="https://github.com/git-truck/git-truck/assets/1959615/780852f3-28de-44d2-ab79-e4ef420c3736"> |
|
|
9
|
+
| Which parts of the system that are most often changed | <img width="1912" alt="image" src="https://github.com/git-truck/git-truck/assets/1959615/8ca5f0b9-798f-40cd-b64e-de2fee00a5c3"> |
|
|
12
10
|
|
|
11
|
+
## [What makes Git Truck different?](#what-makes-git-truck-different)
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
🔒 Private by design
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
- Works offline
|
|
18
|
-
- Git provider agnostic - Works with any Git repository
|
|
19
|
-
- No tracking, no ads, no data mining, no analytics, no cloud, no servers
|
|
15
|
+
🏝️ Works offline
|
|
20
16
|
|
|
17
|
+
🤷 Git provider agnostic - works with any git repository
|
|
18
|
+
|
|
19
|
+
😊 No tracking, no ads, no data mining, no analytics, no cloud, no servers
|
|
21
20
|
|
|
22
21
|
## [Prerequisites](#prerequisites)
|
|
23
22
|
|
|
24
|
-
|
|
23
|
+
> [!IMPORTANT]
|
|
24
|
+
> To use Git Truck, you will need to have the following programs installed:
|
|
25
|
+
> - [Node.js](https://nodejs.org/en/) 18.0.0 or newer and npm 10.0 or newer
|
|
26
|
+
> - [git](https://git-scm.com/downloads) 2.29 or newer
|
|
27
|
+
>
|
|
28
|
+
> Check your installed versions using `node --version`, `npm --version` and `git --version`.
|
|
25
29
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
- [git](https://git-scm.com/downloads) 2.29 or newer
|
|
30
|
+
> [!TIP]
|
|
31
|
+
> The latests versions of Node and git can be installed from the links above.
|
|
29
32
|
|
|
30
|
-
|
|
33
|
+
> [!Note]
|
|
34
|
+
> `npm` is automatically installed along with `node`.
|
|
31
35
|
|
|
32
36
|
## [Get started](#get-started)
|
|
33
37
|
|
|
34
|
-
1. Within a git repository, or a directory containing git repositories, run the command
|
|
38
|
+
1. Within a git repository, or a directory containing git repositories, run the command
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
npx -y git-truck
|
|
42
|
+
```
|
|
43
|
+
|
|
35
44
|
2. The application will now open in your default browser.
|
|
36
45
|
|
|
37
|
-
|
|
46
|
+

|
|
38
47
|
|
|
39
|
-
## [
|
|
48
|
+
## [Feedback](#feedback)
|
|
40
49
|
|
|
41
|
-
Please open an issue [here](https://github.com/git-truck/git-truck/issues) where you describe your problem.
|
|
50
|
+
Please open an issue [here](https://github.com/git-truck/git-truck/issues) where you describe your problem or featureq request. For bug reports, please include git version, Node version, npm version, operating system, and an image of the problem would be great too!
|
|
42
51
|
|
|
43
52
|
If you have any suggestions about new features, or things that you think should be different, also feel free to open an issue.
|
|
44
53
|
|
|
@@ -60,7 +69,8 @@ npx git-truck [args]
|
|
|
60
69
|
| `--invalidate-cache` | bypass analyzer cache manually | - |
|
|
61
70
|
| `--headless` | run the program without opening the browser | - |
|
|
62
71
|
|
|
63
|
-
|
|
72
|
+
> [!CAUTION]
|
|
73
|
+
> Using `--invalidate-cache` will cause the analyzer to run every time the client talks to the server. This can be very slow if working with large repositories.
|
|
64
74
|
|
|
65
75
|
### [Configuration](#configuration)
|
|
66
76
|
|
|
@@ -85,9 +95,9 @@ You can also define files to ignore.
|
|
|
85
95
|
|
|
86
96
|
### Very large repositories
|
|
87
97
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
If your repository has more than 1 million commits, it is unlikely that Git Truck can successfully analyze it, even with higher memory limit.
|
|
98
|
+
> [!TIP]
|
|
99
|
+
> If the repository you intend to analyze is very large (300k+ commits), we recommend to increase the memory available to nodejs by setting the environment variable `NODE_OPTIONS` to `--max-old-space-size=4096` before starting Git Truck, otherwise analyzation might crash.
|
|
100
|
+
> If your repository has more than 1 million commits, it is unlikely that Git Truck can successfully analyze it, even with higher memory limit.
|
|
91
101
|
|
|
92
102
|
## Star History
|
|
93
103
|
|