Friday, May 29, 2009

vi - global search and replace?

I use vi heavily. Every time I have to do global search and replace, I have to do google search first. So documenting it here:


Saturday, May 2, 2009

Subversion - query what files will be updated

Another subversion entry!
Before I push changes out to the production website, I wanted to see what files will get pushed out. So I wanted to see if I run svn update, which files will be updated. I was hoping to find something like 'svn update 'dry run'" or 'svn update -query'.

So I looked hard at 'svn update' documentation but still didn't find anything. After a few searches on the manual, the command turned out to be on the least expected svn command. So, the summary is - if you want to see what svn update will do, run this command:
svn status -u