Skip to content

Instantly share code, notes, and snippets.

@daqing
Created March 13, 2009 02:52
Show Gist options
  • Save daqing/78410 to your computer and use it in GitHub Desktop.
Save daqing/78410 to your computer and use it in GitHub Desktop.
#! /bin/bash
# svn commit wrapper
clear
echo -e "\n=> status changed:"
svn st | less -d
svn diff | less -d
echo -ne "\n=> do you want to commit? [y/n]: "
read i
if [ -z "$i" ];then
echo -ne "\n=> commit message: "
read message
if [ -z "$message" ]; then
svn commit -m "debug"
else
svn commit -m "$message"
fi
fi
if [ "$?" == 0 ];then
echo -e "\n=> done."
else
echo -e "\n** commit failed."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment