How can we get the changed files and not folder in SVN command line? I can use this command to get all changed files & folders:
svn st | findstr "^[ADMR]"
But I don't know how to filter the files only as I don't want to get the folders.
Thanks
It's not pretty, but...
In Unlx/Linux/MacOS X:
$ svn status | while read status file
do
[ -f "$file" ] && printf "%s\t\%s\n" "$status" "$file"
done
If you are in Kornshell, you can use print "$status\\t$file" instead of
printf . If you are in BASH, you can simply use
. If you are in BASH, you can simply use
echo instead of
printf , but only if you've turned on
shopt -s xpg_echo` first.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.