Daij-Djan
Daij-Djan

Reputation: 50089

Can I set SVN to always use the --use-merge-history option?

Whenever I do an svn log or svn blame I want it to always use the --use-merge-history (or -g) flag, so that I can follow the history across branches.

I would prefer not to use a shell alias like lsvn or svn_log.

Upvotes: 1

Views: 77

Answers (1)

fedorqui
fedorqui

Reputation: 289755

You can create an alias by adding these lines in your ~/.bashrc:

f_svn ()
{
        svn $1 -g
}
alias svn=f_svn

So whenever you call svn something it will do svn something -g.

Then, in case you want to call the original svn command, you just have to call \svn.

Upvotes: 2

Related Questions