Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pack-refs steps #382

Closed
sluongng opened this issue Jun 2, 2020 · 6 comments
Closed

Add pack-refs steps #382

sluongng opened this issue Jun 2, 2020 · 6 comments
Labels
no-activity Stale issue or PR that will be automatically closed soon.

Comments

@sluongng
Copy link
Contributor

sluongng commented Jun 2, 2020

Problem

For a large repository, and given some particular workflow, there are many refs(branches / tags) that user will have to deal with.

Too many unpacked-refs will lead to slowness in git for-each-ref, which is often used in developers' shell completions script. This, in turn, led to a sluggish User Experience when user want to checkout a branch/tag.

Proposal

Implement pack-refs steps in the background where git pack-refs --all is called routinely. This would help clean up loose refs, save the inodes and speed up for-each-ref call overall.

@shalupov
Copy link

For me it speeds up fetch too

@github-actions
Copy link

Labeling this issue as stale. There has been no activity for 30 days. Remove stale label or comment or this issue will be closed in 7 days.

@github-actions github-actions bot added the no-activity Stale issue or PR that will be automatically closed soon. label Oct 12, 2020
@derrickstolee derrickstolee removed the no-activity Stale issue or PR that will be automatically closed soon. label Oct 12, 2020
@github-actions
Copy link

Labeling this issue as stale. There has been no activity for 30 days. Remove stale label or comment or this issue will be closed in 7 days.

@github-actions github-actions bot added the no-activity Stale issue or PR that will be automatically closed soon. label Jan 10, 2021
@derrickstolee derrickstolee removed the no-activity Stale issue or PR that will be automatically closed soon. label Jan 13, 2021
@derrickstolee
Copy link
Contributor

@sluongng @shalupov: Thank you for creating and commenting here. I'm finally getting around to putting this into core Git instead of Scalar. See gitgitgadget/git#871 for more details. Thanks!

@github-actions
Copy link

github-actions bot commented May 9, 2021

Labeling this issue as stale. There has been no activity for 30 days. Remove stale label or comment or this issue will be closed in 7 days.

@github-actions github-actions bot added the no-activity Stale issue or PR that will be automatically closed soon. label May 9, 2021
@derrickstolee
Copy link
Contributor

Hah. This is in Git 2.31.1, so is enabled by default when using Git's background maintenance. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-activity Stale issue or PR that will be automatically closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants