{"action":"created","comment":{"url":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/comments/57922699","id":57922699,"diff_hunk":"@@ -59,6 +59,42 @@ impl Repository {\n         }\n     }\n \n+    /// Find and open an existing repository, with additional options.\n+    ///\n+    /// If flags contains REPOSITORY_OPEN_NO_SEARCH, the path must point\n+    /// directly to a repository; otherwise, this may point to a subdirectory\n+    /// of a repository, and `open_ext` will search up through parent\n+    /// directories.\n+    ///\n+    /// If flags contains REPOSITORY_OPEN_CROSS_FS, the search through parent\n+    /// directories will not cross a filesystem boundary (detected when the\n+    /// stat st_dev field changes).\n+    ///\n+    /// If flags contains REPOSITORY_OPEN_BARE, force opening the repository as\n+    /// bare even if it isn't, ignoring any working directory, and defer\n+    /// loading the repository configuration for performance.\n+    ///\n+    /// ceiling_dirs specifies a list of paths (separated by the platform path\n+    /// list separator) that the search through parent directories will stop\n+    /// before entering.  Use the functions in std::env to construct or\n+    /// manipulate such a path list.\n+    pub fn open_ext<P: AsRef<Path>>(path: P,\n+                                    flags: RepositoryOpenFlags,\n+                                    ceiling_dirs: Option<&str>)","path":"src/repo.rs","position":34,"original_position":34,"commit_id":"b722c61d7a425fcd202717ba2fe2a03502243480","original_commit_id":"b722c61d7a425fcd202717ba2fe2a03502243480","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"body":"It's not necessarily that hard to do something like `env::split_path(&val)`, though, right? That returned iterator would satisfy the requirement if we have the right generic bounds.\r\n\r\nWe can perhaps add a new trait later, but I'd prefer to stick on the side of fewer traits for now (having `IntoCString` is already unfortunate)","created_at":"2016-03-30T16:48:46Z","updated_at":"2016-03-30T16:48:46Z","html_url":"https://github.com/alexcrichton/git2-rs/pull/126#discussion_r57922699","pull_request_url":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/126","_links":{"self":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/comments/57922699"},"html":{"href":"https://github.com/alexcrichton/git2-rs/pull/126#discussion_r57922699"},"pull_request":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/126"}}},"pull_request":{"url":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/126","id":64418344,"html_url":"https://github.com/alexcrichton/git2-rs/pull/126","diff_url":"https://github.com/alexcrichton/git2-rs/pull/126.diff","patch_url":"https://github.com/alexcrichton/git2-rs/pull/126.patch","issue_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/126","number":126,"state":"open","locked":false,"title":"Add binding for git_repository_open_ext","user":{"login":"joshtriplett","id":162737,"avatar_url":"https://avatars.githubusercontent.com/u/162737?v=3","gravatar_id":"","url":"https://api.github.com/users/joshtriplett","html_url":"https://github.com/joshtriplett","followers_url":"https://api.github.com/users/joshtriplett/followers","following_url":"https://api.github.com/users/joshtriplett/following{/other_user}","gists_url":"https://api.github.com/users/joshtriplett/gists{/gist_id}","starred_url":"https://api.github.com/users/joshtriplett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshtriplett/subscriptions","organizations_url":"https://api.github.com/users/joshtriplett/orgs","repos_url":"https://api.github.com/users/joshtriplett/repos","events_url":"https://api.github.com/users/joshtriplett/events{/privacy}","received_events_url":"https://api.github.com/users/joshtriplett/received_events","type":"User","site_admin":false},"body":"This addresses part of #123.","created_at":"2016-03-29T06:16:07Z","updated_at":"2016-03-30T16:48:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3a3d64553d4238f2c4e8c978e8346d632d1a8698","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/126/commits","review_comments_url":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/126/comments","review_comment_url":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/126/comments","statuses_url":"https://api.github.com/repos/alexcrichton/git2-rs/statuses/b722c61d7a425fcd202717ba2fe2a03502243480","head":{"label":"joshtriplett:git_repository_open_ext","ref":"git_repository_open_ext","sha":"b722c61d7a425fcd202717ba2fe2a03502243480","user":{"login":"joshtriplett","id":162737,"avatar_url":"https://avatars.githubusercontent.com/u/162737?v=3","gravatar_id":"","url":"https://api.github.com/users/joshtriplett","html_url":"https://github.com/joshtriplett","followers_url":"https://api.github.com/users/joshtriplett/followers","following_url":"https://api.github.com/users/joshtriplett/following{/other_user}","gists_url":"https://api.github.com/users/joshtriplett/gists{/gist_id}","starred_url":"https://api.github.com/users/joshtriplett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshtriplett/subscriptions","organizations_url":"https://api.github.com/users/joshtriplett/orgs","repos_url":"https://api.github.com/users/joshtriplett/repos","events_url":"https://api.github.com/users/joshtriplett/events{/privacy}","received_events_url":"https://api.github.com/users/joshtriplett/received_events","type":"User","site_admin":false},"repo":{"id":54941675,"name":"git2-rs","full_name":"joshtriplett/git2-rs","owner":{"login":"joshtriplett","id":162737,"avatar_url":"https://avatars.githubusercontent.com/u/162737?v=3","gravatar_id":"","url":"https://api.github.com/users/joshtriplett","html_url":"https://github.com/joshtriplett","followers_url":"https://api.github.com/users/joshtriplett/followers","following_url":"https://api.github.com/users/joshtriplett/following{/other_user}","gists_url":"https://api.github.com/users/joshtriplett/gists{/gist_id}","starred_url":"https://api.github.com/users/joshtriplett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshtriplett/subscriptions","organizations_url":"https://api.github.com/users/joshtriplett/orgs","repos_url":"https://api.github.com/users/joshtriplett/repos","events_url":"https://api.github.com/users/joshtriplett/events{/privacy}","received_events_url":"https://api.github.com/users/joshtriplett/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joshtriplett/git2-rs","description":"libgit2 bindings for Rust","fork":true,"url":"https://api.github.com/repos/joshtriplett/git2-rs","forks_url":"https://api.github.com/repos/joshtriplett/git2-rs/forks","keys_url":"https://api.github.com/repos/joshtriplett/git2-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joshtriplett/git2-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joshtriplett/git2-rs/teams","hooks_url":"https://api.github.com/repos/joshtriplett/git2-rs/hooks","issue_events_url":"https://api.github.com/repos/joshtriplett/git2-rs/issues/events{/number}","events_url":"https://api.github.com/repos/joshtriplett/git2-rs/events","assignees_url":"https://api.github.com/repos/joshtriplett/git2-rs/assignees{/user}","branches_url":"https://api.github.com/repos/joshtriplett/git2-rs/branches{/branch}","tags_url":"https://api.github.com/repos/joshtriplett/git2-rs/tags","blobs_url":"https://api.github.com/repos/joshtriplett/git2-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joshtriplett/git2-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joshtriplett/git2-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/joshtriplett/git2-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joshtriplett/git2-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/joshtriplett/git2-rs/languages","stargazers_url":"https://api.github.com/repos/joshtriplett/git2-rs/stargazers","contributors_url":"https://api.github.com/repos/joshtriplett/git2-rs/contributors","subscribers_url":"https://api.github.com/repos/joshtriplett/git2-rs/subscribers","subscription_url":"https://api.github.com/repos/joshtriplett/git2-rs/subscription","commits_url":"https://api.github.com/repos/joshtriplett/git2-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/joshtriplett/git2-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/joshtriplett/git2-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/joshtriplett/git2-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/joshtriplett/git2-rs/contents/{+path}","compare_url":"https://api.github.com/repos/joshtriplett/git2-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joshtriplett/git2-rs/merges","archive_url":"https://api.github.com/repos/joshtriplett/git2-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joshtriplett/git2-rs/downloads","issues_url":"https://api.github.com/repos/joshtriplett/git2-rs/issues{/number}","pulls_url":"https://api.github.com/repos/joshtriplett/git2-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/joshtriplett/git2-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/joshtriplett/git2-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joshtriplett/git2-rs/labels{/name}","releases_url":"https://api.github.com/repos/joshtriplett/git2-rs/releases{/id}","deployments_url":"https://api.github.com/repos/joshtriplett/git2-rs/deployments","created_at":"2016-03-29T03:05:03Z","updated_at":"2016-03-29T03:05:04Z","pushed_at":"2016-03-30T04:50:00Z","git_url":"git://github.com/joshtriplett/git2-rs.git","ssh_url":"git@github.com:joshtriplett/git2-rs.git","clone_url":"https://github.com/joshtriplett/git2-rs.git","svn_url":"https://github.com/joshtriplett/git2-rs","homepage":"http://alexcrichton.com/git2-rs","size":2773,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"alexcrichton:master","ref":"master","sha":"08289092a65a2b3652afe3f1fe2d9d1a7e5db5df","user":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"repo":{"id":22531552,"name":"git2-rs","full_name":"alexcrichton/git2-rs","owner":{"login":"alexcrichton","id":64996,"avatar_url":"https://avatars.githubusercontent.com/u/64996?v=3","gravatar_id":"","url":"https://api.github.com/users/alexcrichton","html_url":"https://github.com/alexcrichton","followers_url":"https://api.github.com/users/alexcrichton/followers","following_url":"https://api.github.com/users/alexcrichton/following{/other_user}","gists_url":"https://api.github.com/users/alexcrichton/gists{/gist_id}","starred_url":"https://api.github.com/users/alexcrichton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexcrichton/subscriptions","organizations_url":"https://api.github.com/users/alexcrichton/orgs","repos_url":"https://api.github.com/users/alexcrichton/repos","events_url":"https://api.github.com/users/alexcrichton/events{/privacy}","received_events_url":"https://api.github.com/users/alexcrichton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexcrichton/git2-rs","description":"libgit2 bindings for Rust","fork":false,"url":"https://api.github.com/repos/alexcrichton/git2-rs","forks_url":"https://api.github.com/repos/alexcrichton/git2-rs/forks","keys_url":"https://api.github.com/repos/alexcrichton/git2-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexcrichton/git2-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexcrichton/git2-rs/teams","hooks_url":"https://api.github.com/repos/alexcrichton/git2-rs/hooks","issue_events_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/events{/number}","events_url":"https://api.github.com/repos/alexcrichton/git2-rs/events","assignees_url":"https://api.github.com/repos/alexcrichton/git2-rs/assignees{/user}","branches_url":"https://api.github.com/repos/alexcrichton/git2-rs/branches{/branch}","tags_url":"https://api.github.com/repos/alexcrichton/git2-rs/tags","blobs_url":"https://api.github.com/repos/alexcrichton/git2-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexcrichton/git2-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexcrichton/git2-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexcrichton/git2-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexcrichton/git2-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/alexcrichton/git2-rs/languages","stargazers_url":"https://api.github.com/repos/alexcrichton/git2-rs/stargazers","contributors_url":"https://api.github.com/repos/alexcrichton/git2-rs/contributors","subscribers_url":"https://api.github.com/repos/alexcrichton/git2-rs/subscribers","subscription_url":"https://api.github.com/repos/alexcrichton/git2-rs/subscription","commits_url":"https://api.github.com/repos/alexcrichton/git2-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexcrichton/git2-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexcrichton/git2-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexcrichton/git2-rs/contents/{+path}","compare_url":"https://api.github.com/repos/alexcrichton/git2-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexcrichton/git2-rs/merges","archive_url":"https://api.github.com/repos/alexcrichton/git2-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexcrichton/git2-rs/downloads","issues_url":"https://api.github.com/repos/alexcrichton/git2-rs/issues{/number}","pulls_url":"https://api.github.com/repos/alexcrichton/git2-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/alexcrichton/git2-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/alexcrichton/git2-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexcrichton/git2-rs/labels{/name}","releases_url":"https://api.github.com/repos/alexcrichton/git2-rs/releases{/id}","deployments_url":"https://api.github.com/repos/alexcrichton/git2-rs/deployments","created_at":"2014-08-01T22:30:49Z","updated_at":"2016-03-27T01:07:55Z","pushed_at":"2016-03-30T07:14:08Z","git_url":"git://github.com/alexcrichton/git2-rs.git","ssh_url":"git@github.com:alexcrichton/git2-rs.git","clone_url":"https://github.com/alexcrichton/git2-rs.git","svn_url":"https://github.com/alexcrichton/git2-rs","homepage":"http://alexcrichton.com/git2-rs","size":2833,"stargazers_count":116,"watchers_count":116,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":63,"mirror_url":null,"open_issues_count":7,"forks":63,"open_issues":7,"watchers":116,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/126"},"html":{"href":"https://github.com/alexcrichton/git2-rs/pull/126"},"issue":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/issues/126"},"comments":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/alexcrichton/git2-rs/statuses/b722c61d7a425fcd202717ba2fe2a03502243480"}}}}