Skip to content

Commit faa6b17

Browse files
Include full history in repo stats
Co-authored-by: kylewrader <kylewrader@gmail.com>
1 parent 02affbd commit faa6b17

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "loki-cli"
3-
version = "1.7.0"
3+
version = "1.8.0"
44
authors = ["Kyle W. Rader"]
55
description = "Loki: 🚀 A Git productivity tool"
66
homepage = "https://github.com/kyle-rader/loki-cli"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ lk x -- commit -m "Update Readme without running hooks"
9191
```
9292

9393
### `repo stats`
94-
Analyze first-parent commits to see who has been landing work in a repository. All of the filtering flags operate on commit dates.
94+
Analyze commits reachable from HEAD to see who has been landing work in a repository. All of the filtering flags operate on commit dates.
9595

9696
- `--name` filters by author display name (repeatable, case-insensitive).
9797
- `--email` filters by author email (repeatable, case-insensitive).

src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ struct RepoStatsOptions {
8585

8686
#[derive(Debug, Subcommand)]
8787
enum RepoSubcommand {
88-
/// Analyze first-parent commits by author over time.
88+
/// Analyze commits by author over time.
8989
#[clap(name = "stats")]
9090
Stats(RepoStatsOptions),
9191
}
@@ -233,7 +233,6 @@ fn repo_stats(options: &RepoStatsOptions) -> Result<(), String> {
233233

234234
let mut git_args: Vec<String> = vec![
235235
"log".to_string(),
236-
"--first-parent".to_string(),
237236
"--pretty=format:%ct%x09%an%x09%ae".to_string(),
238237
];
239238
if let Some(start_ts) = range.start_ts {
@@ -340,7 +339,7 @@ fn repo_stats(options: &RepoStatsOptions) -> Result<(), String> {
340339

341340
if totals.is_empty() {
342341
println!(
343-
"No first-parent commits found between {} and {}.",
342+
"No commits found between {} and {}.",
344343
range.start_label, range.end_label
345344
);
346345
return Ok(());

0 commit comments

Comments
 (0)