Skip to content

Instantly share code, notes, and snippets.

@joshwnj
Created February 13, 2012 03:38
Show Gist options
  • Save joshwnj/1813347 to your computer and use it in GitHub Desktop.
Save joshwnj/1813347 to your computer and use it in GitHub Desktop.
filterstat
#!/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}]//
@joshwnj
Copy link
Author

joshwnj commented Feb 13, 2012

usage:

filterstat ? | xargs svn add
filterstat M | xargs svn revert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment