Skip to content

Various examples shape-ups#5272

Merged
pks-t merged 12 commits into
libgit2:masterfrom
tiennou:examples/cli-ification
Nov 28, 2019
Merged

Various examples shape-ups#5272
pks-t merged 12 commits into
libgit2:masterfrom
tiennou:examples/cli-ification

Conversation

@tiennou

@tiennou tiennou commented Oct 17, 2019

Copy link
Copy Markdown
Contributor

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.

@pks-t pks-t left a comment

Copy link
Copy Markdown
Member

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

Comment thread examples/CMakeLists.txt
Comment thread examples/add.c
Comment thread examples/add.c Outdated
Comment thread examples/add.c Outdated
Comment thread examples/add.c Outdated
Comment thread examples/rev-list.c
Comment thread examples/rev-list.c Outdated
@tiennou tiennou force-pushed the examples/cli-ification branch from 2469579 to 357c283 Compare October 27, 2019 12:22
@tiennou

tiennou commented Oct 27, 2019

Copy link
Copy Markdown
Contributor Author

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".

@pks-t pks-t left a comment

Copy link
Copy Markdown
Member

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!

Comment thread examples/add.c
Comment thread examples/args.c Outdated
Comment thread examples/lg2.c Outdated
Comment thread examples/rev-list.c
@tiennou tiennou force-pushed the examples/cli-ification branch from 357c283 to 25fa379 Compare November 6, 2019 10:07
@tiennou tiennou force-pushed the examples/cli-ification branch 2 times, most recently from 4e12cba to 0b64465 Compare November 6, 2019 10:11
@tiennou tiennou force-pushed the examples/cli-ification branch from 0b64465 to fe42557 Compare November 6, 2019 10:19

@pks-t pks-t left a comment

Copy link
Copy Markdown
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants