Skip to content
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

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

Merged
merged 4 commits into from Jun 16, 2019

Conversation

ethomson
Copy link
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.

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

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

None yet

2 participants