一、Hash碰撞后的原则
当出现冲突时,保留当前仓库已有的对象;
二、冲突场景
已存在 | 新对象 | 结果 |
---|---|---|
blob | blob | commit success, lost fail |
tree | blob | commit sucess, push fail |
commit | blob | commit sucess, push fail |
blob | commit | commit fail, when updating "ref" |
blob | tree | commit fail, when create commit |
tree | commit | commit fail, when updating "ref" |
tree | tree | push success, reference to wrong tree |
commit | commit | HEAD always point to old |
commit | tree | commit fail, when create commit |
网友评论