3 ms·
To enable the commit-graph feature in your repository, run git config core.commitGraph true. Then, you can update your commit-graph file by running ‘git show-r
by bluebluetimes 8y ago
To enable the commit-graph feature in your repository, run git config core.commitGraph true. Then, you can update your commit-graph file by running
‘git show-ref -s | git commit-graph write —stdin-commits'
how do you automatically update this?
- rakoo 8y agoIt's not perfect but doing it in a pre-push hook can be useful. Unfortunately there's no post-receive hook on client-side, which could have been useful in this situation...
- masklinn 8y ago> It's not perfect but doing it in a pre-push hook can be useful. That's completely unnecessary and way too frequent. Some where else (reddit I think?) the authors noted that they'd like to have it run alongside GCs in the next version. So running it as pre-auto-gc is a better idea.
- rakoo 8y agoI was thinking that you need to do that everytime refs change, but it's just a boost and I presume you can have some refs in the commit-graph and some not in there and it will still work, so you're probably right.
- stolee 8y agoWe are working to make this run automatically in the future. https://public-inbox.org/git/20180627132447.142473-1-dstolee@microsoft.com/T/#u https://public-inbox.org/git/20180627132447.142473-1-dstolee... You don't need to run this with every commit, but maybe once after a big fetch or right after a new clone.