This repository was archived by the owner on Feb 18, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 39
[do not merge] use a pure node implementation of git ls-remote #95
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c7a405c
replace exec-git.js with native node implementation of git.
adamburgess 7b4a948
remove execOpt
adamburgess f521dd2
make extend work with objects recursively
adamburgess bb48185
make sure all requests set jspm as user-agent and respect strictSSL
adamburgess ad1fa95
change ls-remote.js's argument to use a request object
adamburgess 128ced4
add github api to locate
adamburgess 3c05591
update semver ranges to caret
adamburgess ed54419
remove temporary code that was committed
adamburgess 31dbc1d
add travis
adamburgess ddfcb61
fix another syntax error
adamburgess 2d1f4ef
add some fairly simple tests
adamburgess 845ae9d
add more languages
adamburgess 4f9e30f
update test
adamburgess 4451b3a
comments
adamburgess 40b887e
change code to allow fallback to git on API rate limit
adamburgess 0413f90
style change to match
adamburgess 0a45da6
add token support
adamburgess ae07e0d
fix locate when using token
adamburgess f2c1d4a
fix API path
adamburgess fd64ea4
add user auth test as well
adamburgess cb7cac9
Revert "add more languages"
adamburgess c395d2b
promisify ls-remote
adamburgess abb6dff
changes to extend
adamburgess File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| language: node_js | ||
| sudo: false | ||
| node_js: | ||
| - "4" | ||
| - "5" | ||
| - "6" |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original numbers you posted showed the git protocol as faster. Did it turn out the API is faster then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is this a consequence of this implementation of the git protocol over the native
git ls-remote?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was initially doing one request to get all references - tags/heads and pull requests. This proved very slow on large repos with lots of PRs.
at @tamird's suggestion I then did two requests, one to fetch tags, one for heads. This is now the same speed or faster than git, and can be cached (but isn't cached currently in my implementation)