Skip to content

git fetch results in a lot of new remote branches getting processed #879

Answered by arxanas
pink asked this question in Q&A
Discussion options

You must be logged in to vote

git-branchless prints these as part of the reference-transaction hook. Ideally, these branches would all be batched into the same transaction, so that only one (very long) line would be printed, but upstream Git hasn't implemented that.

git-branchless used to work with remote branches, but it no longer does, so I guess we could ignore updates to remote branches. If you want to make that change, you'll have to do it in the reference-transaction hook:

https://github.com/arxanas/git-branchless/blob/de7bf6911829f2e3a85bdbe04640e327fdedee98/git-branchless-hook/src/lib.rs#LL474C41-L474C41

There's currently no way to suppress the printing of the message itself.

Fetching only the main branch is f…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@pink
Comment options

@arxanas
Comment options

@pink
Comment options

Answer selected by pink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants