{"action":"created","comment":{"url":"https://api.github.com/repos/simbody/simbody/pulls/comments/24285947","id":24285947,"diff_hunk":"@@ -87,6 +87,26 @@ namespace SimTK {\n  */\n class SimTK_SimTKCOMMON_EXPORT Pathname {\n public:\n+    /// Given a specified working directory (swd) and path, this function\n+    /// evaluates the absolute path of a given path relative to the swd and\n+    /// returns the directory, fileName, and extension of the canonicalized absolute\n+    /// path. This means that instead of evaluating \".\" as the current working\n+    /// directory (cwd), the swd is used. In general, some rules are as follows\n+    /// 1) If an absolute path is given by path, swd is not used. An absolute path\n+    ///    is defined as a a root-relative path name and on Windows it will begin ","path":"SimTKcommon/include/SimTKcommon/internal/Pathname.h","position":10,"original_position":10,"commit_id":"db27648b97b6a79bc1acdff7ecfa58ceca2bbbf5","original_commit_id":"db27648b97b6a79bc1acdff7ecfa58ceca2bbbf5","user":{"login":"sherm1","id":4088016,"avatar_url":"https://avatars.githubusercontent.com/u/4088016?v=3","gravatar_id":"","url":"https://api.github.com/users/sherm1","html_url":"https://github.com/sherm1","followers_url":"https://api.github.com/users/sherm1/followers","following_url":"https://api.github.com/users/sherm1/following{/other_user}","gists_url":"https://api.github.com/users/sherm1/gists{/gist_id}","starred_url":"https://api.github.com/users/sherm1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sherm1/subscriptions","organizations_url":"https://api.github.com/users/sherm1/orgs","repos_url":"https://api.github.com/users/sherm1/repos","events_url":"https://api.github.com/users/sherm1/events{/privacy}","received_events_url":"https://api.github.com/users/sherm1/received_events","type":"User","site_admin":false},"body":"\"and on Windows it *may* begin with a drive letter\" (it is still root-relative if it begins with a slash, but it is the root of the current drive). I suppose if there were an swd with a drive letter it would grab that drive rather than the current one, right? But then ignore the rest of the swd?","created_at":"2015-02-07T02:41:33Z","updated_at":"2015-02-07T02:41:33Z","html_url":"https://github.com/simbody/simbody/pull/307#discussion_r24285947","pull_request_url":"https://api.github.com/repos/simbody/simbody/pulls/307","_links":{"self":{"href":"https://api.github.com/repos/simbody/simbody/pulls/comments/24285947"},"html":{"href":"https://github.com/simbody/simbody/pull/307#discussion_r24285947"},"pull_request":{"href":"https://api.github.com/repos/simbody/simbody/pulls/307"}}},"pull_request":{"url":"https://api.github.com/repos/simbody/simbody/pulls/307","id":26420887,"html_url":"https://github.com/simbody/simbody/pull/307","diff_url":"https://github.com/simbody/simbody/pull/307.diff","patch_url":"https://github.com/simbody/simbody/pull/307.patch","issue_url":"https://api.github.com/repos/simbody/simbody/issues/307","number":307,"state":"open","locked":false,"title":"[WIP] deconstructPathRelativeToSWD","user":{"login":"carmichaelong","id":7455790,"avatar_url":"https://avatars.githubusercontent.com/u/7455790?v=3","gravatar_id":"","url":"https://api.github.com/users/carmichaelong","html_url":"https://github.com/carmichaelong","followers_url":"https://api.github.com/users/carmichaelong/followers","following_url":"https://api.github.com/users/carmichaelong/following{/other_user}","gists_url":"https://api.github.com/users/carmichaelong/gists{/gist_id}","starred_url":"https://api.github.com/users/carmichaelong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carmichaelong/subscriptions","organizations_url":"https://api.github.com/users/carmichaelong/orgs","repos_url":"https://api.github.com/users/carmichaelong/repos","events_url":"https://api.github.com/users/carmichaelong/events{/privacy}","received_events_url":"https://api.github.com/users/carmichaelong/received_events","type":"User","site_admin":false},"body":"Addresses fixes to deconstructPathname (addresses issue #264). Introduces a new function deconstructPathRelativeToSWD that finds the absolute path to a given path name relative to a specified working directory (swd).","created_at":"2014-12-20T21:09:23Z","updated_at":"2015-02-07T02:41:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5ae5343c94617064c796ba508939a8fc4f86c86","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/simbody/simbody/pulls/307/commits","review_comments_url":"https://api.github.com/repos/simbody/simbody/pulls/307/comments","review_comment_url":"https://api.github.com/repos/simbody/simbody/pulls/comments/{number}","comments_url":"https://api.github.com/repos/simbody/simbody/issues/307/comments","statuses_url":"https://api.github.com/repos/simbody/simbody/statuses/db27648b97b6a79bc1acdff7ecfa58ceca2bbbf5","head":{"label":"carmichaelong:deconstructPathRelativeToSWD","ref":"deconstructPathRelativeToSWD","sha":"db27648b97b6a79bc1acdff7ecfa58ceca2bbbf5","user":{"login":"carmichaelong","id":7455790,"avatar_url":"https://avatars.githubusercontent.com/u/7455790?v=3","gravatar_id":"","url":"https://api.github.com/users/carmichaelong","html_url":"https://github.com/carmichaelong","followers_url":"https://api.github.com/users/carmichaelong/followers","following_url":"https://api.github.com/users/carmichaelong/following{/other_user}","gists_url":"https://api.github.com/users/carmichaelong/gists{/gist_id}","starred_url":"https://api.github.com/users/carmichaelong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carmichaelong/subscriptions","organizations_url":"https://api.github.com/users/carmichaelong/orgs","repos_url":"https://api.github.com/users/carmichaelong/repos","events_url":"https://api.github.com/users/carmichaelong/events{/privacy}","received_events_url":"https://api.github.com/users/carmichaelong/received_events","type":"User","site_admin":false},"repo":{"id":28062008,"name":"simbody","full_name":"carmichaelong/simbody","owner":{"login":"carmichaelong","id":7455790,"avatar_url":"https://avatars.githubusercontent.com/u/7455790?v=3","gravatar_id":"","url":"https://api.github.com/users/carmichaelong","html_url":"https://github.com/carmichaelong","followers_url":"https://api.github.com/users/carmichaelong/followers","following_url":"https://api.github.com/users/carmichaelong/following{/other_user}","gists_url":"https://api.github.com/users/carmichaelong/gists{/gist_id}","starred_url":"https://api.github.com/users/carmichaelong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carmichaelong/subscriptions","organizations_url":"https://api.github.com/users/carmichaelong/orgs","repos_url":"https://api.github.com/users/carmichaelong/repos","events_url":"https://api.github.com/users/carmichaelong/events{/privacy}","received_events_url":"https://api.github.com/users/carmichaelong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/carmichaelong/simbody","description":"High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems like vehicles, robots, and the human skeleton.","fork":true,"url":"https://api.github.com/repos/carmichaelong/simbody","forks_url":"https://api.github.com/repos/carmichaelong/simbody/forks","keys_url":"https://api.github.com/repos/carmichaelong/simbody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/carmichaelong/simbody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/carmichaelong/simbody/teams","hooks_url":"https://api.github.com/repos/carmichaelong/simbody/hooks","issue_events_url":"https://api.github.com/repos/carmichaelong/simbody/issues/events{/number}","events_url":"https://api.github.com/repos/carmichaelong/simbody/events","assignees_url":"https://api.github.com/repos/carmichaelong/simbody/assignees{/user}","branches_url":"https://api.github.com/repos/carmichaelong/simbody/branches{/branch}","tags_url":"https://api.github.com/repos/carmichaelong/simbody/tags","blobs_url":"https://api.github.com/repos/carmichaelong/simbody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/carmichaelong/simbody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/carmichaelong/simbody/git/refs{/sha}","trees_url":"https://api.github.com/repos/carmichaelong/simbody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/carmichaelong/simbody/statuses/{sha}","languages_url":"https://api.github.com/repos/carmichaelong/simbody/languages","stargazers_url":"https://api.github.com/repos/carmichaelong/simbody/stargazers","contributors_url":"https://api.github.com/repos/carmichaelong/simbody/contributors","subscribers_url":"https://api.github.com/repos/carmichaelong/simbody/subscribers","subscription_url":"https://api.github.com/repos/carmichaelong/simbody/subscription","commits_url":"https://api.github.com/repos/carmichaelong/simbody/commits{/sha}","git_commits_url":"https://api.github.com/repos/carmichaelong/simbody/git/commits{/sha}","comments_url":"https://api.github.com/repos/carmichaelong/simbody/comments{/number}","issue_comment_url":"https://api.github.com/repos/carmichaelong/simbody/issues/comments/{number}","contents_url":"https://api.github.com/repos/carmichaelong/simbody/contents/{+path}","compare_url":"https://api.github.com/repos/carmichaelong/simbody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/carmichaelong/simbody/merges","archive_url":"https://api.github.com/repos/carmichaelong/simbody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/carmichaelong/simbody/downloads","issues_url":"https://api.github.com/repos/carmichaelong/simbody/issues{/number}","pulls_url":"https://api.github.com/repos/carmichaelong/simbody/pulls{/number}","milestones_url":"https://api.github.com/repos/carmichaelong/simbody/milestones{/number}","notifications_url":"https://api.github.com/repos/carmichaelong/simbody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/carmichaelong/simbody/labels{/name}","releases_url":"https://api.github.com/repos/carmichaelong/simbody/releases{/id}","created_at":"2014-12-15T23:55:52Z","updated_at":"2014-12-15T23:55:57Z","pushed_at":"2015-01-05T22:14:30Z","git_url":"git://github.com/carmichaelong/simbody.git","ssh_url":"git@github.com:carmichaelong/simbody.git","clone_url":"https://github.com/carmichaelong/simbody.git","svn_url":"https://github.com/carmichaelong/simbody","homepage":"https://simtk.org/home/simbody","size":170741,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"simbody:master","ref":"master","sha":"5921a3d6bd53c08d7528ae7626f54bc47da0a4c1","user":{"login":"simbody","id":5199961,"avatar_url":"https://avatars.githubusercontent.com/u/5199961?v=3","gravatar_id":"","url":"https://api.github.com/users/simbody","html_url":"https://github.com/simbody","followers_url":"https://api.github.com/users/simbody/followers","following_url":"https://api.github.com/users/simbody/following{/other_user}","gists_url":"https://api.github.com/users/simbody/gists{/gist_id}","starred_url":"https://api.github.com/users/simbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simbody/subscriptions","organizations_url":"https://api.github.com/users/simbody/orgs","repos_url":"https://api.github.com/users/simbody/repos","events_url":"https://api.github.com/users/simbody/events{/privacy}","received_events_url":"https://api.github.com/users/simbody/received_events","type":"Organization","site_admin":false},"repo":{"id":12146969,"name":"simbody","full_name":"simbody/simbody","owner":{"login":"simbody","id":5199961,"avatar_url":"https://avatars.githubusercontent.com/u/5199961?v=3","gravatar_id":"","url":"https://api.github.com/users/simbody","html_url":"https://github.com/simbody","followers_url":"https://api.github.com/users/simbody/followers","following_url":"https://api.github.com/users/simbody/following{/other_user}","gists_url":"https://api.github.com/users/simbody/gists{/gist_id}","starred_url":"https://api.github.com/users/simbody/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simbody/subscriptions","organizations_url":"https://api.github.com/users/simbody/orgs","repos_url":"https://api.github.com/users/simbody/repos","events_url":"https://api.github.com/users/simbody/events{/privacy}","received_events_url":"https://api.github.com/users/simbody/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/simbody/simbody","description":"High-performance C++ multibody dynamics/physics library for simulating articulated biomechanical and mechanical systems like vehicles, robots, and the human skeleton.","fork":false,"url":"https://api.github.com/repos/simbody/simbody","forks_url":"https://api.github.com/repos/simbody/simbody/forks","keys_url":"https://api.github.com/repos/simbody/simbody/keys{/key_id}","collaborators_url":"https://api.github.com/repos/simbody/simbody/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/simbody/simbody/teams","hooks_url":"https://api.github.com/repos/simbody/simbody/hooks","issue_events_url":"https://api.github.com/repos/simbody/simbody/issues/events{/number}","events_url":"https://api.github.com/repos/simbody/simbody/events","assignees_url":"https://api.github.com/repos/simbody/simbody/assignees{/user}","branches_url":"https://api.github.com/repos/simbody/simbody/branches{/branch}","tags_url":"https://api.github.com/repos/simbody/simbody/tags","blobs_url":"https://api.github.com/repos/simbody/simbody/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/simbody/simbody/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/simbody/simbody/git/refs{/sha}","trees_url":"https://api.github.com/repos/simbody/simbody/git/trees{/sha}","statuses_url":"https://api.github.com/repos/simbody/simbody/statuses/{sha}","languages_url":"https://api.github.com/repos/simbody/simbody/languages","stargazers_url":"https://api.github.com/repos/simbody/simbody/stargazers","contributors_url":"https://api.github.com/repos/simbody/simbody/contributors","subscribers_url":"https://api.github.com/repos/simbody/simbody/subscribers","subscription_url":"https://api.github.com/repos/simbody/simbody/subscription","commits_url":"https://api.github.com/repos/simbody/simbody/commits{/sha}","git_commits_url":"https://api.github.com/repos/simbody/simbody/git/commits{/sha}","comments_url":"https://api.github.com/repos/simbody/simbody/comments{/number}","issue_comment_url":"https://api.github.com/repos/simbody/simbody/issues/comments/{number}","contents_url":"https://api.github.com/repos/simbody/simbody/contents/{+path}","compare_url":"https://api.github.com/repos/simbody/simbody/compare/{base}...{head}","merges_url":"https://api.github.com/repos/simbody/simbody/merges","archive_url":"https://api.github.com/repos/simbody/simbody/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/simbody/simbody/downloads","issues_url":"https://api.github.com/repos/simbody/simbody/issues{/number}","pulls_url":"https://api.github.com/repos/simbody/simbody/pulls{/number}","milestones_url":"https://api.github.com/repos/simbody/simbody/milestones{/number}","notifications_url":"https://api.github.com/repos/simbody/simbody/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/simbody/simbody/labels{/name}","releases_url":"https://api.github.com/repos/simbody/simbody/releases{/id}","created_at":"2013-08-16T00:21:53Z","updated_at":"2015-02-06T21:30:35Z","pushed_at":"2015-02-06T21:47:48Z","git_url":"git://github.com/simbody/simbody.git","ssh_url":"git@github.com:simbody/simbody.git","clone_url":"https://github.com/simbody/simbody.git","svn_url":"https://github.com/simbody/simbody","homepage":"https://simtk.org/home/simbody","size":190546,"stargazers_count":240,"watchers_count":240,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":107,"mirror_url":null,"open_issues_count":60,"forks":107,"open_issues":60,"watchers":240,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/simbody/simbody/pulls/307"},"html":{"href":"https://github.com/simbody/simbody/pull/307"},"issue":{"href":"https://api.github.com/repos/simbody/simbody/issues/307"},"comments":{"href":"https://api.github.com/repos/simbody/simbody/issues/307/comments"},"review_comments":{"href":"https://api.github.com/repos/simbody/simbody/pulls/307/comments"},"review_comment":{"href":"https://api.github.com/repos/simbody/simbody/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/simbody/simbody/pulls/307/commits"},"statuses":{"href":"https://api.github.com/repos/simbody/simbody/statuses/db27648b97b6a79bc1acdff7ecfa58ceca2bbbf5"}}}}