SVN log tool does not provide any option to filter output by the user. Using the --username
option won't do the job, unfortunately.
But you may filter SVN changes commited by a chosen user using the following:
svn log | sed -n '/| username |/,/-----$/ p'
Basing on that, you may create a bash script, called svn-log-user
for example, with the following content:
#!/bin/bash
svn log | sed -n "/| $1 |/,/-----$/ p"
Then, put it inside the /usr/local/bin
directory or anywhere that is accessible from the path, run:
echo $PATH
to check which directories are in the path. Then, call it with:
./svn-log-user username
A nie lepiej grep?
ReplyDeleteByć może lepiej - proponuję zamieścić pełne rozwiązanie.
Delete