Skip to content

Change API instances of fromnoun to from_noun (with an underscore)#5117

Merged
pks-t merged 4 commits intomasterfrom
ethomson/to_from
Jun 16, 2019
Merged

Change API instances of fromnoun to from_noun (with an underscore)#5117
pks-t merged 4 commits intomasterfrom
ethomson/to_from

Conversation

@ethomson
Copy link
Copy Markdown
Member

We were inconsistent in our API naming, sometimes using git_object_fromnoun and sometimes using git_object_from_noun.

The majority of functions are named from_something (with an underscore) instead of fromsomething. Update the functions for consistency with the rest of the library.

ethomson added 2 commits June 16, 2019 00:16
The only function that is named `issomething` (without underscore) was
`git_oid_iszero`.  Rename it to `git_oid_is_zero` for consistency with
the rest of the library.
The majority of functions are named `from_something` (with an
underscore) instead of `fromsomething`.  Update the blob functions for
consistency with the rest of the library.
@ethomson
Copy link
Copy Markdown
Member Author

Note that I didn't touch the git_oid functions. I think that these are relatively simple changes that shouldn't be very contentious. I think that the git_oid functions may require more thought and discussion.

ethomson added 2 commits June 16, 2019 00:55
The majority of functions are named `from_something` (with an
underscore) instead of `fromsomething`.  Update the index functions for
consistency with the rest of the library.
The majority of functions are named `from_something` (with an
underscore) instead of `fromsomething`.  Update the tag function for
consistency with the rest of the library.
@pks-t
Copy link
Copy Markdown
Member

pks-t commented Jun 16, 2019

Note that I didn't touch the git_oid functions.

At least not the git_oid_from<foo> ones, you did touch the git_oid_is_zero one. :)

Copy link
Copy Markdown
Member

@pks-t pks-t left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for all the interface cleanups you've been doing lately!

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