Skip to content
Browse files

Support for per-repo icons

  • Loading branch information...
1 parent 478f748 commit 721f01f30029667c14442b1f96ffb771d8bbf9a9 @sickill committed Oct 8, 2011
Showing with 13 additions and 4 deletions.
  1. +9 −0 README.md
  2. +4 −4 git-dude
View
9 README.md
@@ -81,6 +81,8 @@ separate git-dude process.
## Configuration
+### Global
+
Set how often git-dude should check for changes (in seconds, default: 60):
$ git config --global dude.interval 30
@@ -89,6 +91,13 @@ Set path to icon used by desktop notifications (default: none):
$ git config --global dude.icon ~/.git-dude/github_32.png
+### Per-repository
+
+Set path to icon used by desktop notifications for this repository (default:
+taken from global setting):
+
+ $ git config dude.icon ~/.git-dude/dm-core/datamapper.png
+
## Author
Marcin Kulik (http://ku1ik.com/ | @sickill)
View
8 git-dude
@@ -23,10 +23,6 @@
interval=$(git config dude.interval)
interval=${interval:-60}
-icon_path=$(git config dude.icon)
-icon_path=${icon_path:-`pwd`/icon.png}
-eval icon_path=$icon_path # to expand ~
-
export LC_ALL=C # make sure git talks english
[[ -d $1 ]] && cd $1
@@ -51,6 +47,10 @@ while true; do
changes=$(git fetch 2>&1 | grep -F -- '->' | sed -E 's/^\s+\+\s+//')
+ icon_path=$(git config dude.icon)
+ icon_path=${icon_path:-`pwd`/icon.png}
+ eval icon_path=$icon_path # to expand ~
+
while read -r line; do
case $line in
*..*)

0 comments on commit 721f01f

Please sign in to comment.
Something went wrong with that request. Please try again.