-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Various examples shape-ups #5272
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
Conversation
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's some very nice improvements here, thanks a lot! I'm mostly very happy about your changes, the only thing I don't like is the rename of lg2_add
to lg2_index_add
. Everything else is just stylistic or minor stuff
2469579
to
357c283
Compare
Rebased, I took some time to tackle all review comments, as well as a few more drastic changes — the "assert.h" cleanup is now global, since it's in both libgit2's and lg2's "common.h". |
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.
Some really minor comments which should be quick to fix up, otherwise this looks very good to me!
357c283
to
25fa379
Compare
4e12cba
to
0b64465
Compare
This allows the example to be used as a quick revwalk test harness.
0b64465
to
fe42557
Compare
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 a lot, @tiennou! By now our examples start to look like we can really show them to others and as if they might be of help to people not knowing libgit2.
Here are some commits to the example code that shape it up a little bit, the kind of things that tends to be lost on various branches when debugging. Note that this hasn't been really tested — I don't expect any obviously broken things, but as I don't remember the actual goal of 3f68eff, for example, I'm not confident 😜.
As a side note, I've rebased the example/pull WIP on top of that, as I've managed to pinpoint another lost-but-interesting commit with the tracking-remote creation helper started but incomplete.