Skip to content

Commit

Permalink
First version of gitchat. It will suck balls.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kadauke committed Oct 22, 2012
1 parent ea36d88 commit 487e8ab
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 0 deletions.
15 changes: 15 additions & 0 deletions gitchat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
function poll() {
while /bin/true; do
current=`git rev-parse HEAD`
./gitchat-receive
after=`git rev-parse HEAD`
git log $current..$after
sleep 1
done
}

poll &

while read line; do
./gitchat-send $line
done
2 changes: 2 additions & 0 deletions gitchat-add
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
message=$1
git commit --allow-empty -m "$message"
4 changes: 4 additions & 0 deletions gitchat-add-file
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mkdir -p files
cp "$1" files/
git add files/$1
git commit -m "Added file '$1'"
1 change: 1 addition & 0 deletions gitchat-enter
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git checkout $1
2 changes: 2 additions & 0 deletions gitchat-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./gitchat-add "$1"
./gitchat-send
1 change: 1 addition & 0 deletions gitchat-receive
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git pull
1 change: 1 addition & 0 deletions gitchat-send
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git push

0 comments on commit 487e8ab

Please sign in to comment.