X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Frev_control%2Fsvnapply.sh;h=2c4d2f0765eabba0eae96e366352a327c1c5c4ee;hb=68f16b40d564a399b525b24ee045f640482c7f96;hp=040675ce3b6d4900bf5d1bee0340492180aeb572;hpb=f933310663ddc4569a66e355536c5422e8aa1f20;p=feisty_meow.git diff --git a/scripts/rev_control/svnapply.sh b/scripts/rev_control/svnapply.sh index 040675ce..2c4d2f07 100644 --- a/scripts/rev_control/svnapply.sh +++ b/scripts/rev_control/svnapply.sh @@ -1,16 +1,24 @@ #!/bin/bash # -# Applies arbitrary commands to any svn status. e.g. +# Applies arbitrary commands to any svn status. # -# Delete all non-svn files (escape the ? from the shell): -# svnapply \? rm +# For example, this shows any files that are in the working folder but are not part of the svn repository: +# svnapply \? echo +# +# This deletes all files that are not checked into svn (escape the ? from the shell): +# svnapply \? rm # # List all conflicted files: -# svnapply C ls -l +# svnapply C ls -l # -# found on web at: http://stackoverflow.com/questions/160104/how-do-you-add-all-untracked-files-in-svn-something-like-git-add-i +# found on web at: +# http://stackoverflow.com/questions/160104/how-do-you-add-all-untracked-files-in-svn-something-like-git-add-i # +source "$FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh" + +save_terminal_title + PATTERN="$1"; shift svn st | egrep "^\\${PATTERN}[ ]+" | \ @@ -18,3 +26,5 @@ svn st | egrep "^\\${PATTERN}[ ]+" | \ sed -e "s|\\\\|/|g" | \ xargs -i "$@" '{}' +restore_terminal_title +