add svn_get_rev_nr

Christian Ferbar 2016-09-29 09:22:14 +02:00
parent d25b5aa9e2
commit bc866d916d

@ -1,19 +1,25 @@
# `svn` plugin # `svn` plugin
This plugin adds some utility functions to display additional information regarding your current svn reositiory. See http://subversion.apache.org/ for the full svn documentation
## Functions ## Functions
| Command | Description | | Command | Description |
|:-----------------------|:----------------------------------------| |:-----------------------|:----------------------------------------|
|svn_prompt_info | prompt for some themes | |svn_prompt_info | prompt for some themes |
|in_svn | within svn directory | |in_svn | within svn directory |
|svn_get_repo_name | | |svn_get_repo_name | |
|svn_get_branch_name | branch name (bug: returns the first path element if branches not used) | |svn_get_branch_name | branch name (bug: returns the first path element if branches not used) |
|svn_get_rev_nr | revision number |
|svn_dirty | changes in this subversion repo | |svn_dirty | changes in this subversion repo |
##Usage ## Caveats
###Agnoster theme git-like prompt
The plugin expects the first directory to be the current branch / tag / trunk.
## Usage
### Agnoster theme git-like prompt
Enable the svn plugin and add the followind lines to your ```~/.zshrc``` Enable the svn plugin and add the followind lines to your ```~/.zshrc```