Skip to content

Instantly share code, notes, and snippets.

@maliqq
Created March 30, 2010 12:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maliqq/349047 to your computer and use it in GitHub Desktop.
Save maliqq/349047 to your computer and use it in GitHub Desktop.
# export diff
export_dir="../export"
mkdir -p $export_dir
for file in $(svn diff --summarize -r$1:$2)
do
if [ -f $file ]
then
dirname=${file%/*}
filename=${file##*/}
mkdir -p "$export_dir/$dirname"
cp $file "$export_dir/$dirname"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment