Title: Add git merge-base command into GitPython · Issue #169 · gitpython-developers/GitPython · GitHub
Open Graph Title: Add git merge-base command into GitPython · Issue #169 · gitpython-developers/GitPython
X Title: Add git merge-base command into GitPython · Issue #169 · gitpython-developers/GitPython
Description: It would be nice if there was a way in the GitPython API to do the following native git command: git merge-base
Open Graph Description: It would be nice if there was a way in the GitPython API to do the following native git command: git merge-base
X Description: It would be nice if there was a way in the GitPython API to do the following native git command: git merge-base <commit 1> <commit 2> For example, it would be nice to be able to perform...
Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/169
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add git merge-base command into GitPython","articleBody":"It would be nice if there was a way in the GitPython API to do the following native git command:\n\n```\ngit merge-base \u003ccommit 1\u003e \u003ccommit 2\u003e\n```\n\nFor example, it would be nice to be able to perform the following:\n\n```\nfrom git import *\n\nrepo = Repo('/path/to/repo')\nbase = repo.find_last_common_ancestor('de1f33', '78dd34')\nprint(base)\n```\n\nThe expected output, assuming the least common ancestor of 'de1f33' and '78dd34' was '6ff871', (obviously all of these commits have fictional SHAs) would be:\n\n```\n\u003cgit.Commit \"6ff871652e0f3b9fa991bbd9b42e520f91723436e\"\u003e\n```\n","author":{"url":"https://github.com/jwir3","@type":"Person","name":"jwir3"},"datePublished":"2014-06-30T01:21:19.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/169/GitPython/issues/169"}
| 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:680a2aba-250a-2ffc-34d7-9458f79704d4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6E8:7A54A:59695:7AB9D:696961E4 |
| html-safe-nonce | af45d1a62dba99500a4308f526a8ce28c0f69b5085a154237d11917a0fd0e632 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkU4OjdBNTRBOjU5Njk1OjdBQjlEOjY5Njk2MUU0IiwidmlzaXRvcl9pZCI6IjQyOTIwNjE0NDMxNTUxMjQ3MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a92268a0bdea8a751ac5b0bb985f090c4a757538d6560cf0a959925dd064577c |
| hovercard-subject-tag | issue:36763261 |
| 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/gitpython-developers/GitPython/169/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2e4b45d6330b90095608809f9bd7681cb6f276033ba7fa6bc15fbf7635787c5/gitpython-developers/GitPython/issues/169 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2e4b45d6330b90095608809f9bd7681cb6f276033ba7fa6bc15fbf7635787c5/gitpython-developers/GitPython/issues/169 |
| og:image:alt | It would be nice if there was a way in the GitPython API to do the following native git command: git merge-base |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jwir3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 48487c1ad776a7975b7132d95f4240ff3ae37cd5b8e3cb597102a4edb76738f1 |
| turbo-cache-control | no-preview |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | 669463fcc54773a88c1f5a44eef6b99a5504b9c7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width