Conversation
|
Note that I couldn't run the online tests, because lack of documentation (and, agreed, unwillingness to try). If someone has any pointers, I'm listening ;-). EDIT: especially since Travis hates me now. I plan on working on push some more, so if someone provides me with a list of things to fix, that'll be a start. What I have on my mind at the moment is :
|
|
cc @carlosmn |
|
This moves in a good direction, but I don't think it goes far enough. Since we're putting the push refspecs into the remote, we should get rid of the The reporting for the local "transport" should be part of a different PR, otherwise it's going to get confusing. @tiennou take a look at the first few lines of |
|
Heh, I wasn't sure how'd you react to a "public" API removal (especially since I wasn't sure what your point on refspecs meant on #2136). Bringing The only thing I'm still curious about is the "refs/heads/master:" refspecs that were used in the tests; are those "standard", or a convenience thing that I kill when simplyfing refspec parsing ? |
|
Yeah, you can do multiple commits that go towards removing Refspecs allow for many shorthands. and they're asymmetrical on the fetch and push side. I don't recall off-hand what |
git_revspec_parse returns empty strings instead of NULLs, so "delete" refspecs would try to have "" resolved and fail.
|
Tests "fixed". The quotes are there because even though I know what |
Maybe the names of `git_transfer_progress_callback` should be made clearer though.
|
What's preferable ? Removing |
|
Sorry, forgot to answer. We can incrementally build towards the removal of int git_remote_push(git_remote *remote)
{
git_push_new();
git_push_add_refspec(<from git_remote_get_push_refspecs()>);
git_push_set_callbacks(<from remote.callbacks>);
git_push_finish();
}We can then remove the |
This makes
pushuse the refspec code to parse refspecs instead of duplicated code, and removesgit_push_set_refspecsin favor of getting whatever is set in the remote push specs whengit_pushis created.