ku1ik / git-dude

Git commit notifier

Home Page:http://ku1ik.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selective monitoring of git commits

jackrabb1t opened this issue · comments

Awesome tool. Sometimes, lots of commits take place, and it will cause screen blindness.

Here is a suggestion:
Any time a file is modified in the git repo dir and is not yet checked in or not pushed, this file's full path name is added to a "watch file"
Based on an optional parameter, use "git log --stat" instead of "git log"
Grab the files names that have changed in a commit, as output from the "git log --stat"
If they match any of the files in the "watch file", then generate the alert
When the user has committed and pushed, this file name is removed from the "watch list"

This will allow for early merge warnings.

So basically you want to only notify about commits that changed one of the files you have modified in your working dir?

Yes, I believe this will be valuable. thanks...

I'm not planning to add this feature as I believe it's not the goal of this project. But you can always fork and adapt it to your workflow.