[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to alter default behavior of svn commit?

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-19 10:11:51 CEST

On Oct 19, 2005, at 05:16, Matthew Wilson wrote:

> I often want to commit a few files that I've edited, but not others.
> So, I do something like:
> svn commit A B C
> But if I've edited files A through Z, and I unintentionally type
> svn commit
> I send all those files to the repository.
> Here's my question: is it possible to somehow change the default
> behavior of svn commit so that it will ONLY commit the files listed on
> the command line?

You could add something like this to your ~/.bashrc:

svn() {
     if [ "$1" = "commit" ]; then
         if [ "x$2" = "x" ]; then
             echo "svn commit: specify which files to commit" 1>&2
             /usr/local/bin/svn "$@"
         /usr/local/bin/svn "$@"

I'm not sure if that's all correct or as good as it could be but that
would be the general idea.

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 19 10:14:08 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.