▲ 2 points
back
1 comments
Hi :) I guess your script will grow over time because soon you'll want to detect also unpushed and stashed changes.
Before you reinvent this wheel, there is already a tool doing exactly that: https://github.com/brandon-rhodes/uncommitted
(Disclaimer: I wrote a large part of it)