René's URL Explorer Experiment


Title: How to disable check for renames? · gitpython-developers/GitPython · Discussion #1195 · GitHub

Open Graph Title: How to disable check for renames? · gitpython-developers/GitPython · Discussion #1195

X Title: How to disable check for renames? · gitpython-developers/GitPython · Discussion #1195

Description: How to disable check for renames?

Open Graph Description: Hi, I've tried to use the following to disable git diff renamed files search: repo.index.diff('origin/HEAD', no_renames=True) This did not work, and after some digging, i've found that GitPython ha...

X Description: Hi, I've tried to use the following to disable git diff renamed files search: repo.index.diff('origin/HEAD', no_renames=True) This did not work, and after some digging, i've found t...

Opengraph URL: https://github.com/gitpython-developers/GitPython/discussions/1195

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to disable check for renames?","text":"

Hi,

\n

I've tried to use the following to disable git diff renamed files search:

\n
repo.index.diff('origin/HEAD', no_renames=True)\n
\n

This did not work, and after some digging, i've found that GitPython hardcodes the -M flag:
\nhttps://github.com/gitpython-developers/GitPython/blob/master/git/diff.py#L106

\n

Why is this flag hardcoded and is there a way around it?

\n

Thanks

","upvoteCount":1,"answerCount":3,"acceptedAnswer":{"@type":"Answer","text":"

With this API there is no way around it unless the git command is used directly such as in repo.git.diff(…).
\nIf there is motivation, a PR could be added to disable rename tracking which I presume is in the interest of increased performance.

","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-472339"}}}

route-pattern/_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format)
route-controllervoltron_discussions_fragments
route-actiondiscussion_layout
fetch-noncev2:2b4150a3-1362-410e-0169-26839e72e864
current-catalog-service-hash9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be
request-idC626:A68CE:4F53D:6C0B1:69823A64
html-safe-nonce72c3cd039e76a419d7bcfa027fd5b4932082a9e85d1a6491475cb9b1598bc860
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjI2OkE2OENFOjRGNTNEOjZDMEIxOjY5ODIzQTY0IiwidmlzaXRvcl9pZCI6IjgzOTUyMDUwNjI5NDY4NjM3MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacdfcf1dd550cdfc46af15b55a0642ac273364f06763762205d5f885571a28c216
hovercard-subject-tagdiscussion:3268140
github-keyboard-shortcutsrepository,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/discussions_fragments/discussion_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/Voltron::DiscussionsFragmentsController/show/gitpython-developers/GitPython/1195/discussion_layout
twitter:imagehttps://opengraph.githubassets.com/ba039de2e9471e844aaf9441c4d3fd356fecf131b3392185ccb59465d4a2aa95/gitpython-developers/GitPython/discussions/1195
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ba039de2e9471e844aaf9441c4d3fd356fecf131b3392185ccb59465d4a2aa95/gitpython-developers/GitPython/discussions/1195
og:image:altHi, I've tried to use the following to disable git diff renamed files search: repo.index.diff('origin/HEAD', no_renames=True) This did not work, and after some digging, i've found that GitPython ha...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9135c12c87e8ba63197821abe054b7c0a2842a97636ee220df564bb0788e556d
turbo-cache-controlno-preview
go-importgithub.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git
octolytics-dimension-user_id503709
octolytics-dimension-user_logingitpython-developers
octolytics-dimension-repository_id1126087
octolytics-dimension-repository_nwogitpython-developers/GitPython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1126087
octolytics-dimension-repository_network_root_nwogitpython-developers/GitPython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6b281db2f76bdbf4b45c30b597223c551b06e6e0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/discussions/1195#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1195
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1195
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fdiscussions_fragments%2Fdiscussion_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1195
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1195
Reloadhttps://github.com/gitpython-developers/GitPython/discussions/1195
gitpython-developers https://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
Notifications https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Fork 965 https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Star 5.1k https://github.com/login?return_to=%2Fgitpython-developers%2FGitPython
Code https://github.com/gitpython-developers/GitPython
Issues 170 https://github.com/gitpython-developers/GitPython/issues
Pull requests 8 https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security 3 https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Code https://github.com/gitpython-developers/GitPython
Issues https://github.com/gitpython-developers/GitPython/issues
Pull requests https://github.com/gitpython-developers/GitPython/pulls
Discussions https://github.com/gitpython-developers/GitPython/discussions
Actions https://github.com/gitpython-developers/GitPython/actions
Security https://github.com/gitpython-developers/GitPython/security
Insights https://github.com/gitpython-developers/GitPython/pulse
Answered https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-472339
Byronhttps://github.com/Byron
dudicoco https://github.com/dudicoco
Q&Ahttps://github.com/gitpython-developers/GitPython/discussions/categories/q-a
How to disable check for renames? https://github.com/gitpython-developers/GitPython/discussions/1195#top
dudicoco https://github.com/dudicoco
Answered https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-472339
Byronhttps://github.com/Byron
Return to tophttps://github.com/gitpython-developers/GitPython/discussions/1195#top
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
dudicoco https://github.com/dudicoco
Mar 11, 2021 https://github.com/gitpython-developers/GitPython/discussions/1195#discussion-3268140
https://github.com/gitpython-developers/GitPython/blob/master/git/diff.py#L106https://github.com/gitpython-developers/GitPython/blob/master/git/diff.py#L106
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
Byron https://github.com/Byron
Mar 12, 2021 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-472339
View full answer https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-472339
Oldest https://github.com/gitpython-developers/GitPython/discussions/1195?sort=old
Newest https://github.com/gitpython-developers/GitPython/discussions/1195?sort=new
Top https://github.com/gitpython-developers/GitPython/discussions/1195?sort=top
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
Byron https://github.com/Byron
Mar 12, 2021 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-472339
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/dudicoco
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
dudicocohttps://github.com/dudicoco
Apr 11, 2021 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-596156
@Byronhttps://github.com/Byron
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
Byronhttps://github.com/Byron
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
mellowed100 https://github.com/mellowed100
Jan 18, 2023 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-4714271
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/mellowed100
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
mellowed100https://github.com/mellowed100
Jan 24, 2023 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-4762240
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/Byron
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
Byronhttps://github.com/Byron
Jan 24, 2023 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-4763627
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/mellowed100
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
mellowed100https://github.com/mellowed100
Jan 27, 2023 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-4800533
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/mellowed100
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
mellowed100https://github.com/mellowed100
Jan 27, 2023 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-4801359
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/Byron
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
Byronhttps://github.com/Byron
Jan 28, 2023 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-4802845
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
nwcm https://github.com/nwcm
Feb 9, 2023 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-4914950
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/mellowed100
Please reload this pagehttps://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/gitpython-developers/GitPython/discussions/1195
mellowed100https://github.com/mellowed100
Feb 9, 2023 https://github.com/gitpython-developers/GitPython/discussions/1195#discussioncomment-4921430
#1551https://github.com/gitpython-developers/GitPython/pull/1551
Give feedback.https://github.com/gitpython-developers/GitPython/discussions/1195
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fdiscussions%2F1195
🙏 Q&A https://github.com/gitpython-developers/GitPython/discussions/categories/q-a
https://github.com/dudicoco
https://github.com/Byron
https://github.com/mellowed100
https://github.com/nwcm
#1194https://github.com/gitpython-developers/GitPython/issues/1194
https://github.com/gitpython-developers/GitPython/discussions/1195
https://github.com/settings/replies?return_to=1
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.