Skip to content

Commit 544294a

Browse files
authored
feat: Add Readme examples (#45)
2 parents 3eaa1ce + 16152f9 commit 544294a

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

.github/workflows/build-lint-test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
fetch-depth: 0
1818

1919
- name: Setup Rust
20-
uses: actions-rs/toolchain@v1
21-
with:
22-
toolchain: stable
20+
run: |
21+
rustup toolchain install stable
22+
rustup default stable
2323
2424
# Needed for the tests
2525
- name: Set git username

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,31 @@
55

66
git-commit-stats is a command-line tool designed to provide insightful analysis of Git repositories. It analyzes commit histories, providing users with valuable information about coding habits and patterns. The tool aims to enhance your understanding of code changes over time.
77

8+
```bash
9+
> git-commit-stats
10+
11+
Commit statistics:
12+
Files changed: 86
13+
Insertions: 2067
14+
Deletions: 429
15+
16+
Commit message word occurrences:
17+
github: 139
18+
clap: 136
19+
com: 127
20+
https: 104
21+
dependencies: 89
22+
1: 85
23+
dependency: 84
24+
chore: 79
25+
group: 78
26+
update: 77
27+
28+
Commit activity:
29+
Most active day: 05-01-2024 with 33 commits
30+
Most active hour: 14 with 19 commits
31+
```
32+
833
## Features
934

1035
- **Commit Analysis:** git-commit-stats extracts commit messages and performs analysis, including word frequency and coding patterns.
@@ -29,7 +54,19 @@ cargo install git-commit-stats
2954
2. Run the cli:
3055

3156
```bash
32-
git-commit-stats --help
57+
> git-commit-stats --help
58+
59+
A tool to analyze git commits
60+
61+
Usage: git-commit-stats [OPTIONS]
62+
63+
Options:
64+
-r, --repo-path <REPO_PATH> Path to the Git repository (default = current directory) [default: ]
65+
-a, --after <AFTER> Commit hash which commits should be analyzed (default = all) [default: ]
66+
-b, --before <BEFORE> Commit hash before which commits should be analyzed (default = all) [default: ]
67+
-u, --user <USER> User name for commit analysis (default = git config user.name) [default: ]
68+
-h, --help Print help
69+
-V, --version Print version
3370
```
3471

3572
### Contributing

0 commit comments

Comments
 (0)