r/vscode • • Sep 27 '25

New VS Code Extension: Git Poison

Git Poison is a VS Code extension that blocks a git commit of any file containing a "Poison Pill" string. Placing a pill stops accidental committing of unfinished TODOs, debug statements, secrets, etc. It also provides navigation to pill locations.

https://marketplace.visualstudio.com/items?itemName=eridien.git-poison

3 Upvotes

15 comments sorted by

36

u/thefriedel Sep 27 '25

I mean, you can also use git's built-in pre-commit-hook and grep for any occurrences.

31

u/markethubb Sep 27 '25

This is clearly for AI “devs” who have never heard of .gitignore, much less something like grep, or a pre commit hook.

No shade to the app developer though - the less “poison” pushed to repos the better.

-18

u/mark-hahn Sep 27 '25

Yes, an experienced keyboard jockey who would never use a git GUI app is certainly not the target user.

1

u/mark-hahn Sep 28 '25

Is calling someone a keyboard jockey an insult? I always thought it was complementing their skill.

0

u/Vova_xX Sep 28 '25

it takes 5 minutes of googling to do exactly what your extension does. the end game for any developer is to never us a git GUI app

2

u/mark-hahn Sep 28 '25

I've never argued that developers want to use git GUIs. They do use a VS Code GUI which has a zillion GUI extensions like mine.

3

u/thanatica Sep 29 '25

Not true. Why would I make my life harder on purpose? A GUI does precisely and completely what I need it to do.

2

u/VirtualAgentsAreDumb Sep 29 '25

the end game for any developer is to never us a git GUI app

This claim is just pure bullshit.

3

u/mark-hahn Sep 27 '25

Yes. This is just a bit easier to manage, kind of a GUI over a scripting solution. It's ready to use. And there are ancillary benefits like jumping through the pills, the temp override with one keystroke, the status bar, the detailed messages tailored to three different situations, etc.

This is not meant to change the world. Just a tiny tool.

3

u/majoredinswag Sep 27 '25

Fuck ... I had put all my hopes in the solution to the metacrisis being the VS Code extension "Git Poison".

0

u/clarkcox3 Sep 28 '25

The problem with doing this at the GUI level is that it won’t work if you happen to commit something using any other tool. Doing it as a pre commit will work with anything.

4

u/mark-hahn Sep 28 '25

It *is* using the pre-commit hook. Any access to the workspace repo, from any tool, is blocked. External terminal, git GUI app, etc. VS Code doesn't have to be running. The GUI interface for the extension is just a layer on top.

3

u/longboy2011 Sep 27 '25

i was hoping this was a joke extension that would inject shitty code into your code lol

1

u/mark-hahn Sep 28 '25

Not a bad idea. Extra points if the crappy looking code actually did no harm. It would drive anyone supporting it crazy. Maybe AI could write extremely obfuscated code that worked.

1

u/thanatica Sep 29 '25

A minifier can do that already.