Skip to content

clone post hook#230

Merged
acunniffe merged 3 commits intomainfrom
feat/fetch-notes-on-clone
Nov 24, 2025
Merged

clone post hook#230
acunniffe merged 3 commits intomainfrom
feat/fetch-notes-on-clone

Conversation

@acunniffe
Copy link
Copy Markdown
Collaborator

After a clone, fetch authorship notes

@git-ai-cloud-dev
Copy link
Copy Markdown

git-ai-cloud-dev Bot commented Nov 22, 2025

Stats powered by Git AI

🧠 you    █░░░░░░░░░░░░░░░░░░░  3%
🤖 ai     ░███████████████████  97%
More stats
  • 4.3 lines generated for every 1 accepted
  • 0 seconds waiting for AI
  • Top model: cursor::claude-4.5-sonnet-thinking (170 accepted lines, 733 generated lines)

AI code tracked with git-ai

};

// Fetch authorship notes from origin
if let Err(e) = fetch_authorship_notes(&repository, "origin") {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could take a while on big repos, is there any way that we could background this by default on interactive (user-facing) terminals?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible, but I feel like it's a lot of complexity to add for a very infrequent action.

If the concern is that someone might CTRL-C before it finishes, we could add some better logging to the clone output to tell users Git AI is pulling down AI Authorship

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aidancunniffe@ac Desktop % rm -rf mom-test && git clone https://github.com/acunniffe/mom-test.git

Cloning into 'mom-test'...
remote: Enumerating objects: 485, done.
remote: Counting objects: 100% (485/485), done.
remote: Compressing objects: 100% (322/322), done.
remote: Total 485 (delta 243), reused 372 (delta 130), pack-reused 0 (from 0)
Receiving objects: 100% (485/485), 15.37 MiB | 27.95 MiB/s, done.
Resolving deltas: 100% (243/243), done.
Fetching git-ai authorship notes, done.

Did this ⬆️

Comment thread src/commands/hooks/clone_hooks.rs Outdated
Comment thread src/commands/hooks/clone_hooks.rs Outdated
@acunniffe acunniffe merged commit a2f3761 into main Nov 24, 2025
6 of 8 checks passed
@acunniffe acunniffe deleted the feat/fetch-notes-on-clone branch November 24, 2025 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants