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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners