remove trailing spaces from tracked files
copy functionality