-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
commit-graph: Add a way to write commit-graph files #5778
Conversation
a1bf7a4
to
93ab8d8
Compare
93ab8d8
to
019346e
Compare
8a7fe96
to
012cfe4
Compare
This change adds the git_commit_graph_writer_* functions to allow to write and create `commit-graph` files from `.idx`/`.pack` files or `git_revwalk`s. Part of: libgit2#5757
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.
Thanks again for your work on commit graphs, this is really exciting stuff. A few minor nits and a few questions. One additional question - are you using some tool to format your code? Your formatting seems consistent with itself but not particularly consistent with the rest of the project. Curious if this is your style, a tool, etc...
yes! i am using clang-format with settings that tried to be as consistent as possible with the rest of the codebase (but apparently didn't meet the goal u_u). |
* Added the `PenaltyBreakAssignment: 1000` clang-format option to avoid breaking statements around the assignment operator. * Avoided using the dot initializer syntax. * Avoided casting allocations. * Also avoided casting `void *`.
these are the current settings i have:
|
Sorry it's taken so long to get back to this, #5974 took a lot more time than I expected. 😢 One question about the struct initializer. Otherwise, I'm going to take a whack at tweaking clang-format to see if we can get it a little closer to our style. Then I'm looking forward to merging this and cutting 1.2.0 with all your improvements. Thanks for all the hard work - and your patience in getting them reviewed. |
Also, add `git_commit_graph_writer_options_init`!
Sorry about pulling the rug out from under you with the array changes. Thanks for the iteration. 👍 |
1 similar comment
Sorry about pulling the rug out from under you with the array changes. Thanks for the iteration. 👍 |
I did a few formatting fixes because I had it beaten into my head that we should have binary operators at the end of a line not the beginning. I apologize for this compulsion, but there it is. Manually merged. Thanks for all this work! |
This change adds the git_commit_graph_writer_* functions to allow to
write and create
commit-graph
files from.idx
/.pack
files orgit_revwalk
s.Part of: #5757