René's URL Explorer Experiment


Title: untracked_files no longer detected · Issue #138 · gitpython-developers/GitPython · GitHub

Open Graph Title: untracked_files no longer detected · Issue #138 · gitpython-developers/GitPython

X Title: untracked_files no longer detected · Issue #138 · gitpython-developers/GitPython

Description: Hi, The output of git status is no longer in the format expected by python-git, in particular the Repo.untracked_files property parses the git status output expecting a: # Untracked files: while later versions of git droped the #, also t...

Open Graph Description: Hi, The output of git status is no longer in the format expected by python-git, in particular the Repo.untracked_files property parses the git status output expecting a: # Untracked files: while la...

X Description: Hi, The output of git status is no longer in the format expected by python-git, in particular the Repo.untracked_files property parses the git status output expecting a: # Untracked files: while la...

Opengraph URL: https://github.com/gitpython-developers/GitPython/issues/138

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"untracked_files no longer detected","articleBody":"Hi,\n\nThe output of git status is no longer in the format expected by python-git, in\nparticular the Repo.untracked_files property parses the git status output\nexpecting a:\n\n```\n# Untracked files:\n```\n\nwhile later versions of git droped the #, also there are some subtleties in\nthe management of the file names (avoid the use of replace and rstrip\nremoves spaces not only '\\n').\n\nHere is a patch that fixes the untracked_files property. There might be other parts affected by the change in the git output.\n\n```\ndiff -Naru python-git/git/repo/base.py python-git.new/git/repo/base.py\n--- python-git/git/repo/base.py 2011-07-05 21:50:02.000000000 +0200\n+++ python-git.new/git/repo/base.py 2014-02-23 17:54:32.157547255 +0100\n@@ -512,35 +512,33 @@\n                return True\n        # END untracked files\n        return False\n-       \n+\n    @property\n    def untracked_files(self):\n        \"\"\"\n        :return:\n            list(str,...)\n-           \n+\n            Files currently untracked as they have not been staged yet. Paths \n            are relative to the current working directory of the git command.\n-           \n+\n        :note:\n            ignored files will not appear here, i.e. files mentioned in .gitignore\"\"\"\n        # make sure we get all files, no only untracked directores\n-       proc = self.git.status(untracked_files=True, as_process=True)\n-       stream = iter(proc.stdout)\n+       proc = self.git.status(porcelain=True,\n+           untracked_files=True,\n+           as_process=True)\n+       # Untracked files preffix in porcelain mode\n+       preffix = \"?? \"\n        untracked_files = list()\n-       for line in stream:\n-           if not line.startswith(\"# Untracked files:\"):\n+       for line in proc.stdout:\n+           if not line.startswith(preffix):\n                continue\n-           # skip two lines\n-           stream.next()\n-           stream.next()\n-           \n-           for untracked_info in stream:\n-               if not untracked_info.startswith(\"#\\t\"):\n-                   break\n-               untracked_files.append(untracked_info.replace(\"#\\t\", \"\").rstrip())\n-           # END for each utracked info line\n-       # END for each line\n+                        filename = line[len(preffix):].rstrip('\\n')\n+                        # Special characters are escaped\n+                        if filename[0] == filename[-1] == '\"':\n+                            filename = filename[1:-1].decode('string_escape')\n+           untracked_files.append(filename)\n        return untracked_files\n\n    @property\n```\n","author":{"url":"https://github.com/maxyz","@type":"Person","name":"maxyz"},"datePublished":"2014-02-23T17:05:33Z","url":"https://github.com/gitpython-developers/GitPython/issues/138"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9c4fc9f3-26e4-0342-fcdd-ff8af9dd4301
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id98E0:683FF:98FAC5:C66A98:6B00E008
html-safe-nonce62bf5d0ef37806f72e59499c1a8eab28cd3797101f6c1e59bfd38d8b2f7862cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEUwOjY4M0ZGOjk4RkFDNTpDNjZBOTg6NkIwMEUwMDgiLCJ2aXNpdG9yX2lkIjoiMzg3MjA0MTc4NjU1MzcyMDg0MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac418d660ef033a13415577fde3f211178122d42745f228492b43645f8300aee7b
hovercard-subject-tagissue:28122139
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/gitpython-developers/GitPython/138/issue_layout
twitter:imagehttps://opengraph.githubassets.com/56b24f9c9ff2dec01fd47074d82bae8f130c7bc7dd915ae2e0f42d9228f823ca/gitpython-developers/GitPython/issues/138
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/56b24f9c9ff2dec01fd47074d82bae8f130c7bc7dd915ae2e0f42d9228f823ca/gitpython-developers/GitPython/issues/138
og:image:altHi, The output of git status is no longer in the format expected by python-git, in particular the Repo.untracked_files property parses the git status output expecting a: # Untracked files: while la...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxyz
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
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
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/gitpython-developers/GitPython/issues/138#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F138
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgitpython-developers%2FGitPython%2Fissues%2F138
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=gitpython-developers%2FGitPython
Reloadhttps://github.com/gitpython-developers/GitPython/issues/138
Reloadhttps://github.com/gitpython-developers/GitPython/issues/138
Reloadhttps://github.com/gitpython-developers/GitPython/issues/138
gitpython-developershttps://github.com/gitpython-developers
GitPythonhttps://github.com/gitpython-developers/GitPython
Codehttps://github.com/gitpython-developers/GitPython
Issues1 (1)https://github.com/gitpython-developers/GitPython/issues
Pull requestshttps://github.com/gitpython-developers/GitPython/pulls
Discussionshttps://github.com/gitpython-developers/GitPython/discussions
Actionshttps://github.com/gitpython-developers/GitPython/actions
Security and quality42 (42)https://github.com/gitpython-developers/GitPython/security
Insightshttps://github.com/gitpython-developers/GitPython/insights
https://github.com/gitpython-developers/GitPython
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/138
New issuehttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/138
untracked_files no longer detectedhttps://github.com/gitpython-developers/GitPython/issues/138#top
https://github.com/Byron
v0.3.5 - bugfixeshttps://github.com/gitpython-developers/GitPython/milestone/5
https://github.com/maxyz
maxyzhttps://github.com/maxyz
on Feb 23, 2014https://github.com/gitpython-developers/GitPython/issues/138#issue-28122139
https://github.com/joshvillbrandt
joshvillbrandthttps://github.com/joshvillbrandt
on Apr 27, 2014https://github.com/gitpython-developers/GitPython/issues/138#issuecomment-41487959
https://github.com/marknorgren
marknorgrenhttps://github.com/marknorgren
on May 6, 2014https://github.com/gitpython-developers/GitPython/issues/138#issuecomment-42261279
https://github.com/Byron
Byronhttps://github.com/Byron
on May 6, 2014https://github.com/gitpython-developers/GitPython/issues/138#issuecomment-42273087
maxyzhttps://github.com/maxyz
on May 6, 2014https://github.com/gitpython-developers/GitPython/issues/138#event-118172838
Fix for untracked_files no longer detected gitpython-developers#138https://github.com/maxyz/GitPython/commit/5d4a9c2374049ed45b43d09781c086d5674f48cf
gitpython-developers#138https://github.com/gitpython-developers/GitPython/issues/138
5d4a9c2https://github.com/maxyz/GitPython/commit/5d4a9c2374049ed45b43d09781c086d5674f48cf
Fix for untracked_files no longer detected gitpython-developers#138https://github.com/maxyz/GitPython/commit/4a023acbe9fc9a183c395be969b7fc7d472490cb
gitpython-developers#138https://github.com/gitpython-developers/GitPython/issues/138
4a023achttps://github.com/maxyz/GitPython/commit/4a023acbe9fc9a183c395be969b7fc7d472490cb
Byronhttps://github.com/Byron
on May 6, 2014https://github.com/gitpython-developers/GitPython/issues/138#event-118176182
Merge pull request #158 from maxyz/0.3https://github.com/gitpython-developers/GitPython/commit/11e0a94f5e7ed5f824427d615199228a757471fe
#158https://github.com/gitpython-developers/GitPython/pull/158
11e0a94https://github.com/gitpython-developers/GitPython/commit/11e0a94f5e7ed5f824427d615199228a757471fe
https://github.com/maxyz
maxyzhttps://github.com/maxyz
on May 6, 2014https://github.com/gitpython-developers/GitPython/issues/138#issuecomment-42286457
Byronhttps://github.com/Byron
on May 6, 2014https://github.com/gitpython-developers/GitPython/issues/138#event-118176989
Merge pull request #159 from maxyz/masterhttps://github.com/gitpython-developers/GitPython/commit/ad715a0bceaa0d9e51a9c446a718152df4396de2
#159https://github.com/gitpython-developers/GitPython/pull/159
ad715a0https://github.com/gitpython-developers/GitPython/commit/ad715a0bceaa0d9e51a9c446a718152df4396de2
https://github.com/Byron
Byronhttps://github.com/Byron
on May 6, 2014https://github.com/gitpython-developers/GitPython/issues/138#issuecomment-42286857
https://github.com/Utumno
Utumnohttps://github.com/Utumno
on Sep 19, 2014https://github.com/gitpython-developers/GitPython/issues/138#issuecomment-56188082
https://github.com/maxyz
maxyzhttps://github.com/maxyz
on Oct 1, 2014https://github.com/gitpython-developers/GitPython/issues/138#issuecomment-57449244
https://github.com/sociomantic/git-hubhttps://github.com/sociomantic/git-hub
#192https://github.com/gitpython-developers/GitPython/pull/192
#193https://github.com/gitpython-developers/GitPython/pull/193
#194https://github.com/gitpython-developers/GitPython/pull/194
Byronhttps://github.com/Byron
v0.3.5 - bugfixeshttps://github.com/gitpython-developers/GitPython/milestone/5
on Nov 14, 2014https://github.com/gitpython-developers/GitPython/issues/138#event-193413250
Byronhttps://github.com/Byron
on Jan 7, 2015https://github.com/gitpython-developers/GitPython/issues/138#event-215151309
https://github.com/Byron
Byronhttps://github.com/Byron
on Jan 7, 2015https://github.com/gitpython-developers/GitPython/issues/138#issuecomment-68991087
already mergedhttps://github.com/gitpython-developers/GitPython/blob/master/git/repo/base.py#L553
test-casehttps://github.com/gitpython-developers/GitPython/blob/master/git/test/test_repo.py#L308
Byronhttps://github.com/Byron
completedhttps://github.com/gitpython-developers/GitPython/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jan 7, 2015https://github.com/gitpython-developers/GitPython/issues/138#event-215153286
Sign up for freehttps://github.com/signup?return_to=https://github.com/gitpython-developers/GitPython/issues/138
Sign in to commenthttps://github.com/login?return_to=https://github.com/gitpython-developers/GitPython/issues/138
Byronhttps://github.com/Byron
v0.3.5 - bugfixeshttps://github.com/gitpython-developers/GitPython/milestone/5
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.