Created
February 13, 2012 03:38
-
-
Save joshwnj/1813347 to your computer and use it in GitHub Desktop.
filterstat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wrapper for "svn status". Shows only files matching the filter | |
# Usage: filterstat [?CMAI] | |
# | |
# source: http://subversion.tigris.org/faq.html#switch-problems | |
filter=$1 | |
svn status --no-ignore | grep ^[${filter}] | sed s/^[${filter}]// |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
usage:
filterstat ? | xargs svn add
filterstat M | xargs svn revert