How to execute alias commands in svn?

I want to add some aliases for the svn on macOS system. For instance:

 svn ci "Some message" // equal to svn commit -m "Some message" svn addall // equal to svn add --force * --auto-props --parents --depth infinity -q 

What have I done for this?

I am new to svn, I used to use git and all the aliases were created in the .gitconfig file. Is this also possible in svn ?

UPDATE

Regarding this answer note, adding the following lines to the ~/.subversion/config file:

 alias ciam = "commit -m" [alias] ciam = commit -m 

command:

 svn ciam 

still not working.

Can svn aliases be defined?

+5
source share
1 answer

You will need to define bash aliases (not svn configs) as suggested by xentek gist

 # add everything that needs to be added based on results of svn status alias svnadd="svn st | grep \? | awk '''{print \"svn add \"$2 }''' | bash" 

In this answer , for example:

added alias ~/.bashrc :

 alias svn-add-unversioned="svn st | grep '^\?' | sed 's/^\? *//' | xargs -I% svn add %" 

Now just type svn-a and click on the tab, enter!

In your case, you can define alias svnaddall for your command (see " How can SVN add all untranslated files to SVN? ").


Note: the subversion configuration file ( ~/.subversion/config or /etc/subversion/config ), but it will not contain an alias definition.

+3
source

Source: https://habr.com/ru/post/1259710/


All Articles