-
-
Notifications
You must be signed in to change notification settings - Fork 593
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
on-demand branchname validity (while typing) #559
Comments
same for tag names: https://libgit2.org/libgit2/#HEAD/group/tag/git_tag_name_is_valid |
hello there! rust newcomer here. will take a shot at this :) |
Very cool, welcome! Let me know when you need any help |
requires upstream change first: rust-lang/git2-rs#714 |
also wip: master...franciscod:wip_check_branch_name (won't create PR until the one in git2-rs lands) |
@franciscod congrats for the merge in |
Thanks! |
ah, for tags, missed that one! Well #759 is my work in progress for branches, I guess we could do branches first and then tags? |
after rust-lang/git2-rs#734 we can at least go ahead with the branch validity check |
libgit2 exposes a helper function to check a branch name validity: https://libgit2.org/libgit2/#HEAD/group/branch/git_branch_name_is_valid
lets run this against the input before it gets confirmed.
this way we can give live feedback to the user whether the name is valid.
The text was updated successfully, but these errors were encountered: