Title: Patch to enhance functionality · Issue #14 · techtonik/python-patch · GitHub
Open Graph Title: Patch to enhance functionality · Issue #14 · techtonik/python-patch
X Title: Patch to enhance functionality · Issue #14 · techtonik/python-patch
Description: I'm using python-patch in one of my projects, so to return the favor here are my changes: 1. Support -p
Open Graph Description: I'm using python-patch in one of my projects, so to return the favor here are my changes: 1. Support -p
X Description: I'm using python-patch in one of my projects, so to return the favor here are my changes: 1. Support -p<num> like GNU patch, to strip path components 2. Set exit code to 0 or 1 depending ...
Opengraph URL: https://github.com/techtonik/python-patch/issues/14
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Patch to enhance functionality","articleBody":"```\nI'm using python-patch in one of my projects, so to return the favor here are \nmy changes:\n\n1. Support -p\u003cnum\u003e like GNU patch, to strip path components\n\n2. Set exit code to 0 or 1 depending on errors occured (like GNU patch)\n\n3. Support creating new files (source=/dev/null), like GNU patch\n\n4. Don't touch global logging configuration on module load, unless used as \n__main__ (useful when embedding in a larger project)\n\nA patch is attached (applies cleanly to SVN r111)\n\n```\n\nOriginal issue reported on code.google.com by `laa...@gmail.com` on 27 Nov 2010 at 6:05\n- Blocked on: #3\n\nAttachments:\n- [python-patch.patch](https://storage.googleapis.com/google-code-attachments/python-patch/issue-14/comment-0/python-patch.patch)\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2015-04-18T09:05:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/14/python-patch/issues/14"}
| 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:1957c0fe-2c5b-7293-d101-cc4a0f443e7e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A880:323DD4:16EFA38:1F94BC4:696AAAA5 |
| html-safe-nonce | 4a19b24bb837d6fbf96a1a4b2da981fac234db4d92ec9ce28b31a98cc2666b7e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODgwOjMyM0RENDoxNkVGQTM4OjFGOTRCQzQ6Njk2QUFBQTUiLCJ2aXNpdG9yX2lkIjoiMzUxMjE5MTI1MDE2NjYyMjg4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 186a7894fea11737e6499ba4489b522060f13270af2c45390e5306cacd5bb564 |
| hovercard-subject-tag | issue:69288665 |
| 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/techtonik/python-patch/14/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f1942e78481bcde17cc01147d2d5d7515925d0ee7c5d222351fe4485883541cb/techtonik/python-patch/issues/14 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f1942e78481bcde17cc01147d2d5d7515925d0ee7c5d222351fe4485883541cb/techtonik/python-patch/issues/14 |
| og:image:alt | I'm using python-patch in one of my projects, so to return the favor here are my changes: 1. Support -p |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3eaf9b8cf1badcd7041a8ad480b9d9b28bea0ef1cc821ca9ff20f2cc7f4fe4b9 |
| turbo-cache-control | no-preview |
| go-import | github.com/techtonik/python-patch git https://github.com/techtonik/python-patch.git |
| octolytics-dimension-user_id | 515889 |
| octolytics-dimension-user_login | techtonik |
| octolytics-dimension-repository_id | 34159484 |
| octolytics-dimension-repository_nwo | techtonik/python-patch |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34159484 |
| octolytics-dimension-repository_network_root_nwo | techtonik/python-patch |
| 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 | dd9a979046e6382bd084e2bd873bf65f797125ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width