FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Adds support for strarray in structs by orderedlist · Pull Request #461 · nodegit/nodegit · GitHub

Repository navigation

Adds support for strarray in structs - #461

Merged
orderedlist merged 2 commits into
masterfrom
ol-strarray-in-structs
Mar 5, 2015
Merged

orderedlist merged 2 commits into
masterfrom
ol-strarray-in-structs

Conversation

Copy link
Copy Markdown
Collaborator

Pathspecs happen a ton in options structs, we can finally checkout individual
files, etc.

I'll want some 👀 on this to make sure the C++ isn't doing anything wrong or leaking somewhere.

tbranyen modified the milestone: 0.3.0 Mar 4, 2015

Copy link
Copy Markdown
Collaborator

Results in:

NAN_SETTER(GitCheckoutOptions::SetPaths)
{
  NanScope();

  GitCheckoutOptions *wrapper = ObjectWrap::Unwrap<GitCheckoutOptions>(args.This());

  Handle<Object> paths(value->ToObject());
  NanDisposePersistent(wrapper->paths);

  NanAssignPersistent(wrapper->paths, paths);

  wrapper->raw->paths = * StrArrayConverter::Convert(paths->ToObject()) ;

}

Copy link
Copy Markdown
Collaborator

That generated C++ looks good.

Copy link
Copy Markdown
Collaborator

I'd say lets add in a test to confirm this works and then merge it in.

orderedlist force-pushed the ol-strarray-in-structs branch from 2588580 to 907db37 Compare March 4, 2015 17:32
Pathspecs happen a ton in options structs, we can finally checkout individual
files, etc.
orderedlist force-pushed the ol-strarray-in-structs branch from 907db37 to 5047566 Compare March 4, 2015 18:10

Copy link
Copy Markdown
Collaborator Author

Ok, test is in place. Someone sanity-check that please, and we can merge.

tbranyen commented Mar 5, 2015

Copy link
Copy Markdown
Member

This looks good to me!

Copy link
Copy Markdown
Collaborator

@orderedlist, looks good. builds fine here.

orderedlist added a commit that referenced this pull request Mar 5, 2015
orderedlist merged commit 3a500cd into master Mar 5, 2015
orderedlist deleted the ol-strarray-in-structs branch March 5, 2015 15:57

Copy link
Copy Markdown
Collaborator Author

Copy link
Copy Markdown
Collaborator

👍 to that gif

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL