Skip to content

caps: Rename to features to avoid confusion - #2150

Merged
vmg merged 3 commits into
developmentfrom
vmg/features
Mar 3, 2014
Merged

vmg merged 3 commits into
developmentfrom
vmg/features

Conversation

@vmg

@vmg vmg commented Mar 3, 2014

Copy link
Copy Markdown
Member

Git already has a very clear concept of "capabilities" (i.e. the ones that the network protocol supports, such as out of band packets and so on). Calling our own build flag check "capabilities" too makes this confusing, and worse of it all, gives us identifiers like GIT_CAP_HTTPS and GIT_CAP_OFS_DELTA that are 100% unrelated, and yet have the same prefix.

Let's rename our own build features as "features" because it's a much more appropriate name.

Comment thread include/git2/common.h Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What about GIT_FEATURE_SSH instead of GIT_HAS_SSH? Seems weird to have GIT_HAS_* in an enum called git_feature_t.

/ocd

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I DONT SEE WHY NOT.

vmg pushed a commit that referenced this pull request Mar 3, 2014
caps: Rename to features to avoid confusion
@vmg
vmg merged commit f34b9a5 into development Mar 3, 2014
Comment thread include/git2/common.h

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

the openssh? I think you mean the libssh2 library. 😆

phatblat pushed a commit to phatblat/libgit2 that referenced this pull request Sep 13, 2014
caps: Rename to features to avoid confusion
@nulltoken
nulltoken deleted the vmg/features branch November 8, 2014 23:47
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