Skip to content

Commit

Permalink
Updated linux scripts to use notify-send
Browse files Browse the repository at this point in the history
  • Loading branch information
bronzehedwick committed Oct 18, 2012
1 parent d417cfe commit 4415074
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions linux/post-checkout
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#
# A hook script that is called after a successful
# This hook shows a message when a successful
# checkout is made.

if [ $3 == 1 ]
Expand All @@ -12,7 +12,7 @@ then
else
REFS="No files changed"
fi
growlnotify -t "Checked out $(git branch | grep "*" | sed "s/* //")" -m "$REFS" -I "~/Dropbox/git/git_icon_mac.txt"
notify-send "Checked out $(git branch | grep "*" | sed "s/* //")" "$REFS" -i ../images/git_icon.png
else
# This is a file checkout
growlnotify -t "Checked out file" -m "$REFS" -I "~/Dropbox/git/git_icon_mac.txt"
Expand Down
4 changes: 2 additions & 2 deletions linux/post-commit
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
#
# To enable this hook, rename this file to "post-commit".

growlnotify -t "Commit Successful" -m "$(git log -1 --pretty=format:"%s")" -I "~/Dropbox/git/git_icon_mac.txt"
echo $@
notify-send "Commit Successful" "$(git log -1 --pretty=format:"%s")" -i ~/Dropbox/git/git_icon.png

7 changes: 2 additions & 5 deletions linux/post-merge
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/sh
#
# An example hook script that is called after a successful
# This hook displays a message when a successful
# merge is made.
#
# To enable this hook, rename this file to "post-merge".

growlnotify -t "Merge Successful" -m "On branch $(git branch | grep "*" | sed "s/* //")" -I "~/Dropbox/git/git_icon_mac.txt"
echo $@
notify-send "Merge Successful" "On branch $(git branch | grep "*" | sed "s/* //")" -i ../images/git_icon.png
7 changes: 2 additions & 5 deletions linux/post-update
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/bin/sh
#
# An example hook script to prepare a packed repository for use over
# dumb transports.

growlnotify -t "Pull Successful" -m "On branch $(git branch | grep "*")" -I "~/Dropbox/git/git_icon_mac.txt"
echo $@
# This hook shows a message after a successful pull

notify-send "Pull Successful" "On branch $(git branch | grep "*")" -i ../images/git_icon.png

0 comments on commit 4415074

Please sign in to comment.