[GH-ISSUE #287] Stats range is missing attributions with equivalent rev names #105

Closed
opened 2026-03-02 04:11:51 +03:00 by kerem · 0 comments
Owner

Originally created by @svarlamov on GitHub (Dec 12, 2025).
Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/287

Originally assigned to: @acunniffe on GitHub.

Passing in the shas vs using head~x seems to yield different results for the git-ai stats command

➜  git-ai git:(feat/optimize-checkpoint-size) git-ai stats 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92                                        
[git-ai] Stats command found commit: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 refname: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92
you  ███████████████████████████░░░░░░░░░░░░░ ai
     68%            mixed   1%             31%
     97% AI code accepted | waited 2m for ai
➜  git-ai git:(feat/optimize-checkpoint-size) git-ai stats 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92..head
[git-ai] ✓ Fetched refs/heads/feat/optimize-checkpoint-size from origin
[git-ai] Calculating authorship log for range: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 -> 46fe5f058f7c949d409ee8a5ab069243a3b30c36
[git-ai] No files changed in range


Committers are not using git-ai
➜  git-ai git:(feat/optimize-checkpoint-size) git-ai log                                                 
Unknown git-ai command: log
➜  git-ai git:(feat/optimize-checkpoint-size) git log   
➜  git-ai git:(feat/optimize-checkpoint-size) git-ai stats 46fe5f058f7c949d409ee8a5ab069243a3b30c36                                              
[git-ai] Stats command found commit: 46fe5f058f7c949d409ee8a5ab069243a3b30c36 refname: 46fe5f058f7c949d409ee8a5ab069243a3b30c36
you  ████████████████████████████████████████ ai
     100%                                   0%
➜  git-ai git:(feat/optimize-checkpoint-size) git-ai stats 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92..46fe5f058f7c949d409ee8a5ab069243a3b30c36    
[git-ai] ✓ Fetched refs/heads/feat/optimize-checkpoint-size from origin
[git-ai] Calculating authorship log for range: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 -> 46fe5f058f7c949d409ee8a5ab069243a3b30c36
[git-ai] No files changed in range


Committers are not using git-ai
➜  git-ai git:(feat/optimize-checkpoint-size) git-ai stats head~2..head                                                                      
[git-ai] ✓ Fetched refs/heads/feat/optimize-checkpoint-size from origin
[git-ai] Calculating authorship log for range: c8076d9cdd997698d9f4aefb47515d72b4ff2526 -> 46fe5f058f7c949d409ee8a5ab069243a3b30c36
[git-ai] Processing 2 changed files for range authorship
[git-ai] Read 2 committed files from end commit
[git-ai] [BENCHMARK] collect_line_metadata (old/new) took 3.230334ms
[git-ai] [BENCHMARK] capture_diff_slices produced 1 ops in 1.869791ms
[git-ai] [BENCHMARK] compute_diffs processed 1 ops in 6.416µs (total 5.117375ms)
[git-ai] [BENCHMARK] collect_line_metadata (old/new) took 3.375667ms
[git-ai] [BENCHMARK] capture_diff_slices produced 3 ops in 1.929083ms
[git-ai] [BENCHMARK] compute_diffs processed 3 ops in 4.230833ms (total 9.551583ms)
[git-ai] [BENCHMARK] collect_line_metadata (old/new) took 153.417µs
[git-ai] [BENCHMARK] capture_diff_slices produced 1 ops in 112.292µs
[git-ai] [BENCHMARK] compute_diffs processed 1 ops in 3.084µs (total 289.916µs)
[git-ai] Created authorship log with 2 attestations, 2 prompts


you  █████████████████████████████░░░░░░░░░░░ ai
     74%                                  26%
     100% AI code accepted | waited 40s for ai
➜  git-ai git:(feat/optimize-checkpoint-size) git-ai stats head~1..head
[git-ai] ✓ Fetched refs/heads/feat/optimize-checkpoint-size from origin
[git-ai] Calculating authorship log for range: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 -> 46fe5f058f7c949d409ee8a5ab069243a3b30c36
[git-ai] No files changed in range


Committers are not using git-ai
➜  git-ai git:(feat/optimize-checkpoint-size) git log | head -20       
commit 46fe5f058f7c949d409ee8a5ab069243a3b30c36
Author: Sasha Varlamov <sasha@sashavarlamov.com>
Date:   Thu Dec 11 19:07:39 2025 -0500

    add some more reflow tests

commit 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92
Author: Sasha Varlamov <sasha@sashavarlamov.com>
Date:   Thu Dec 11 19:03:16 2025 -0500

    major performance improvement to worst case diffing scenarios

commit c8076d9cdd997698d9f4aefb47515d72b4ff2526
Author: Sasha Varlamov <sasha@sashavarlamov.com>
Date:   Thu Dec 11 15:14:34 2025 -0500

    fmt

And for this PR, the bot (old version of Git AI...) yielded a different answer as well: https://github.com/acunniffe/git-ai/pull/286#issuecomment-3644348516

Originally created by @svarlamov on GitHub (Dec 12, 2025). Original GitHub issue: https://github.com/git-ai-project/git-ai/issues/287 Originally assigned to: @acunniffe on GitHub. Passing in the shas vs using `head~x` seems to yield different results for the `git-ai stats` command ``` ➜ git-ai git:(feat/optimize-checkpoint-size) git-ai stats 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 [git-ai] Stats command found commit: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 refname: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 you ███████████████████████████░░░░░░░░░░░░░ ai 68% mixed 1% 31% 97% AI code accepted | waited 2m for ai ➜ git-ai git:(feat/optimize-checkpoint-size) git-ai stats 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92..head [git-ai] ✓ Fetched refs/heads/feat/optimize-checkpoint-size from origin [git-ai] Calculating authorship log for range: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 -> 46fe5f058f7c949d409ee8a5ab069243a3b30c36 [git-ai] No files changed in range Committers are not using git-ai ➜ git-ai git:(feat/optimize-checkpoint-size) git-ai log Unknown git-ai command: log ➜ git-ai git:(feat/optimize-checkpoint-size) git log ➜ git-ai git:(feat/optimize-checkpoint-size) git-ai stats 46fe5f058f7c949d409ee8a5ab069243a3b30c36 [git-ai] Stats command found commit: 46fe5f058f7c949d409ee8a5ab069243a3b30c36 refname: 46fe5f058f7c949d409ee8a5ab069243a3b30c36 you ████████████████████████████████████████ ai 100% 0% ➜ git-ai git:(feat/optimize-checkpoint-size) git-ai stats 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92..46fe5f058f7c949d409ee8a5ab069243a3b30c36 [git-ai] ✓ Fetched refs/heads/feat/optimize-checkpoint-size from origin [git-ai] Calculating authorship log for range: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 -> 46fe5f058f7c949d409ee8a5ab069243a3b30c36 [git-ai] No files changed in range Committers are not using git-ai ➜ git-ai git:(feat/optimize-checkpoint-size) git-ai stats head~2..head [git-ai] ✓ Fetched refs/heads/feat/optimize-checkpoint-size from origin [git-ai] Calculating authorship log for range: c8076d9cdd997698d9f4aefb47515d72b4ff2526 -> 46fe5f058f7c949d409ee8a5ab069243a3b30c36 [git-ai] Processing 2 changed files for range authorship [git-ai] Read 2 committed files from end commit [git-ai] [BENCHMARK] collect_line_metadata (old/new) took 3.230334ms [git-ai] [BENCHMARK] capture_diff_slices produced 1 ops in 1.869791ms [git-ai] [BENCHMARK] compute_diffs processed 1 ops in 6.416µs (total 5.117375ms) [git-ai] [BENCHMARK] collect_line_metadata (old/new) took 3.375667ms [git-ai] [BENCHMARK] capture_diff_slices produced 3 ops in 1.929083ms [git-ai] [BENCHMARK] compute_diffs processed 3 ops in 4.230833ms (total 9.551583ms) [git-ai] [BENCHMARK] collect_line_metadata (old/new) took 153.417µs [git-ai] [BENCHMARK] capture_diff_slices produced 1 ops in 112.292µs [git-ai] [BENCHMARK] compute_diffs processed 1 ops in 3.084µs (total 289.916µs) [git-ai] Created authorship log with 2 attestations, 2 prompts you █████████████████████████████░░░░░░░░░░░ ai 74% 26% 100% AI code accepted | waited 40s for ai ➜ git-ai git:(feat/optimize-checkpoint-size) git-ai stats head~1..head [git-ai] ✓ Fetched refs/heads/feat/optimize-checkpoint-size from origin [git-ai] Calculating authorship log for range: 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 -> 46fe5f058f7c949d409ee8a5ab069243a3b30c36 [git-ai] No files changed in range Committers are not using git-ai ➜ git-ai git:(feat/optimize-checkpoint-size) git log | head -20 commit 46fe5f058f7c949d409ee8a5ab069243a3b30c36 Author: Sasha Varlamov <sasha@sashavarlamov.com> Date: Thu Dec 11 19:07:39 2025 -0500 add some more reflow tests commit 0e8d6efde52da5eda5f46dd61cce11f4e31e3a92 Author: Sasha Varlamov <sasha@sashavarlamov.com> Date: Thu Dec 11 19:03:16 2025 -0500 major performance improvement to worst case diffing scenarios commit c8076d9cdd997698d9f4aefb47515d72b4ff2526 Author: Sasha Varlamov <sasha@sashavarlamov.com> Date: Thu Dec 11 15:14:34 2025 -0500 fmt ``` And for this PR, the bot (old version of Git AI...) yielded a different answer as well: https://github.com/acunniffe/git-ai/pull/286#issuecomment-3644348516
kerem 2026-03-02 04:11:51 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/git-ai#105
No description provided.