Title: Path issues windows · Issue #522 · nodegit/nodegit · GitHub
Open Graph Title: Path issues windows · Issue #522 · nodegit/nodegit
X Title: Path issues windows · Issue #522 · nodegit/nodegit
Description: When using patch.oldFile().path(); as per example seen here https://github.com/nodegit/nodegit/blob/master/examples/walk-history-for-file.js#L27 the path returned here stays with forward-slashes (/), where-as when you use nodejs' path it...
Open Graph Description: When using patch.oldFile().path(); as per example seen here https://github.com/nodegit/nodegit/blob/master/examples/walk-history-for-file.js#L27 the path returned here stays with forward-slashes (/...
X Description: When using patch.oldFile().path(); as per example seen here https://github.com/nodegit/nodegit/blob/master/examples/walk-history-for-file.js#L27 the path returned here stays with forward-slashes (/...
Opengraph URL: https://github.com/nodegit/nodegit/issues/522
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Path issues windows","articleBody":"When using `patch.oldFile().path();` as per example seen here https://github.com/nodegit/nodegit/blob/master/examples/walk-history-for-file.js#L27 the path returned here stays with forward-slashes (`/`), where-as when you use nodejs' `path` it returns backwards-slashes. This now makes comparing part of the path quite hard.\n\nThe workaround I currently have it just to replace all slashes in the path string, so they match.\n","author":{"url":"https://github.com/Globegitter","@type":"Person","name":"Globegitter"},"datePublished":"2015-03-30T05:54:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/522/nodegit/issues/522"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:870da78c-7d08-f0ef-57ac-5af9c2364a4e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E464:2A4911:40B2869:54B6EC8:6A5D2627 |
| html-safe-nonce | 062e18f5191cfccb6565c8b5312d9a0a792b26a09a73e9f8256e1e1795bc71a0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDY0OjJBNDkxMTo0MEIyODY5OjU0QjZFQzg6NkE1RDI2MjciLCJ2aXNpdG9yX2lkIjoiNjMxOTg1MzE0ODcyNDYwMjQwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d2946922c2100141ce93dcbcf7305414f83c438a80137df849addbfa0ea5cfd9 |
| hovercard-subject-tag | issue:65141733 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/522/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7025e47bc371f3e40224ddbf94aa0a8de4f4d8f3e9d0cab151c0ae85ea37952b/nodegit/nodegit/issues/522 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7025e47bc371f3e40224ddbf94aa0a8de4f4d8f3e9d0cab151c0ae85ea37952b/nodegit/nodegit/issues/522 |
| og:image:alt | When using patch.oldFile().path(); as per example seen here https://github.com/nodegit/nodegit/blob/master/examples/walk-history-for-file.js#L27 the path returned here stays with forward-slashes (/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Globegitter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width