Postscript code always treated as "binary" #156673
Replies: 2 comments 10 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
Yeah, this happens because GitHub treats .ps (PostScript) files as binary by default, even though they’re actually plain text. GitHub uses a tool called linguist to decide file types. Unfortunately, .ps is currently marked as binary in Linguist’s settings — so GitHub won’t show diffs for those files in commits or PRs. One workaround is to add a .gitattributes file to ur repo with this line: *.ps text This tells Git to treat .ps files as text, which can help with local tools — but sadly it won’t change how GitHub renders it on the website, since the UI logic still follows Linguist rules. If this is something u feel strongly about, I’d suggest opening a request or PR over at github/linguist to ask for .ps to be treated as source code. Others might benefit from it too. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
Much of my code is written in postscript. When I look at my commits on github, my .ps file changes just say "Binary file not shown." See denismm/dmmlib@3ffbe05 for example. This isn't a git issue - this works fine on the command line on my local system.
How can I get github to treat my code as code?
Beta Was this translation helpful? Give feedback.
All reactions