Guest User

Untitled

a guest
Oct 22nd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ARGS="$@"
  4. case "$1" in
  5. ci)
  6. shift
  7. DIFF=$(svn diff "$@" | grep --context 5 pdb.set_trace)
  8. if [ -n "$DIFF" ]; then
  9. echo "$DIFF"
  10. read -ep "Continue (y/N): " OK
  11. if [ "$OK" != "y" ]; then
  12. exit 0
  13. fi
  14. fi
  15. exec svn $ARGS
  16. ;;
  17. add)
  18. shift
  19. if [ -z "$@" ]; then
  20. exec svnaddall
  21. fi
  22. exec svn $ARGS
  23. ;;
  24. *)
  25. exec svn $ARGS
  26. ;;
  27. esac
Add Comment
Please, Sign In to add comment