How to use TextMate as a command line subversion message editor?

Just setting the SVN_EDITOR variable for โ€œpairingโ€ fails. It opens TextMate if necessary, but then when I save the message and exit, I am prompted to continue, interrupt or try again. It seems that the buffer is not returning to the svn command for use.

+4
source share
2 answers

You need to include the command line parameter in the variable SVN_EDITOR (or EDITOR)

export SVN_EDITOR = 'mate -w'

This will make the svn command wait for the editor to close / release the file before continuing, namely where the process is now running.

See here .

+19
source

I found this googling thread for textmate as svn editor. When trying to find out that you can also set the cmd file in the ~/.subversion/config file, and more importantly, you should set the value mate -wl1 , because in this way the carriage will be placed on the first line of the file, a place to put comments for commit messages.

Just help me in this thread.

+2
source

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


All Articles