-
Notifications
You must be signed in to change notification settings - Fork 16
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 git.multi-gc #7
base: master
Are you sure you want to change the base?
Conversation
@@ -19,4 +19,4 @@ build | |||
# others | |||
tmp | |||
.ropeproject | |||
venv/ | |||
.idea |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是说换了编辑器了么。。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不得不换
d501a44
to
a70b6b3
Compare
a70b6b3
to
6318a61
Compare
2ae997f
to
b7ebcd6
Compare
git_process(git.reflog, 'expire', all=True) | ||
git_process(git.repack, d=True, l=True, **_OPTS['repack_all']) | ||
|
||
que = BfsQue(repository, cnd_fn=lambda commit, repo: commit.id in repo) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xtao 使用新的办法,先listall_references,后BFS查找最新的可被解析的commit作为head传入prune
添加git.multi_gc功能。如果不指定fork的路径列表,与普通gc相同。指定fork_path时认为fork对repo因共享objects存在依赖,这时列出仍各个fork所有refs的有效commits,传递给prune,以保证做prune时不会删除由它们可达的commits