Skip to content

Conversation

@maxkorp
Copy link
Collaborator

@maxkorp maxkorp commented Mar 3, 2015

This makes functions that share typenames available under the type. Eg instead of Clone.clone, you can just call Clone, or Reset instead of Reset.reset, etc.

Also disables the ability to require specific files, requiring you to load nodegit proper.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

local isn't necessary here, require does this automatically.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotcha. I've just been adding it everywhere in the name of consistency. I was actually having issues with files not loading thinking it wasnt grabbing htem, but they were bing swallowed by the catch on line 59

@tbranyen
Copy link
Member

tbranyen commented Mar 3, 2015

I noticed a lot of require calls with the local normalizing, can you strip those out as well? It'll simplify the code a bit.

@maxkorp
Copy link
Collaborator Author

maxkorp commented Mar 3, 2015

Yeah No problem. A lot of them got added in the tests during the clone fiasco

@maxkorp maxkorp force-pushed the template-proto-functions branch from 5f01cb0 to 740453d Compare March 3, 2015 22:30
@maxkorp maxkorp force-pushed the template-proto-functions branch from 740453d to 1906fea Compare March 3, 2015 23:20
maxkorp added a commit that referenced this pull request Mar 3, 2015
@maxkorp maxkorp merged commit fd2b66a into master Mar 3, 2015
@maxkorp maxkorp deleted the template-proto-functions branch March 3, 2015 23:43
@maxkorp maxkorp changed the title WIP: Template proto functions Template proto functions Mar 3, 2015
@tbranyen tbranyen added this to the 0.3.0 milestone Mar 4, 2015
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.

3 participants