Skip to content

Move git_ref_t to git_reference_t#4939

Merged
ethomson merged 2 commits intomasterfrom
ethomson/git_ref
Jan 19, 2019
Merged

Move git_ref_t to git_reference_t#4939
ethomson merged 2 commits intomasterfrom
ethomson/git_ref

Conversation

@ethomson
Copy link
Copy Markdown
Member

Again, for consistency: our reference function names are all git_reference_*. This PR updates the git_ref_t enum to be named git_reference_t; its values are now GIT_REFERENCE_*. In addition, GIT_REF_OID has been renamed to GIT_REFERENCE_DIRECT for standardization with other git and libgit2 terminology.

The old names forward to the new names, but are now marked as deprecated.

@ethomson ethomson force-pushed the ethomson/git_ref branch 2 times, most recently from 02f4c36 to 0805c87 Compare January 17, 2019 09:03
Update the reference type names from an abbreviation (`git_ref`) to use
the fullname (`git_reference`).  This ensures that we are consistent
with our naming for reference types and functions throughout the
library.

The previous names are now marked as deprecated.
Update internal usage to use the `git_reference` names for constants.
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.

1 participant