Source: sebastiandedeyne.com

Scan for todos on a git branch
https://sebastiandedeyne.com/scan-todos-in-git/ https://sebastiandedeyne.com/tags/git/When I’m working on a feature or refactor, I often leave @todo comments to remain in flow and deal with other points later. I don’t mind committing them to my feature branch, as long as I work them away before merging in. On large branches, it can be easy to forget about that todo I left in there a few days ago.

{ $podcast->process(); // @todo Broadcast event to trigger webhooks return $podcast; }

git --no-pager diff main..feature-branch | grep -i "^\+[^$]*@todo" + // @todo Broadcast event to trigger webhooks
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners