News for hackers. Stuff that matters.
Re:Supercharging the Git Commit Graph by bluebluetimes on Thursday June 28, 2018 @04:09AM (#17414977)
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?

Re:Supercharging the Git Commit Graph by stolee on Thursday June 28, 2018 @06:42AM (#17415703)
We are working to make this run automatically in the future. 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.

Re:Supercharging the Git Commit Graph by rakoo on Thursday June 28, 2018 @04:55AM (#17415171)
It'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...
Re:Supercharging the Git Commit Graph by masklinn on Thursday June 28, 2018 @07:49AM (#17416065)
> 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.

Re:Supercharging the Git Commit Graph by rakoo on Thursday June 28, 2018 @08:17AM (#17416228)
I 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.