aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_print_svn_rev.fish
diff options
context:
space:
mode:
authorGravatar Samantha Marshall <me@samdmarshall.com>2015-12-05 14:12:02 -0500
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-12-10 18:17:40 +0100
commitf5dfebb6a3fbd828eae70e3f18b49d673e1c8380 (patch)
tree7beeff0d8be187432e36d3dcb1f6692b63c7d0ec /share/functions/__fish_print_svn_rev.fish
parent2b7ffca41421c6c3551003c6db4ad82c3324c5d3 (diff)
Add __fish_svn_prompt function
This refactors __fish_print_svn_rev to not depend on english locale
Diffstat (limited to 'share/functions/__fish_print_svn_rev.fish')
-rw-r--r--share/functions/__fish_print_svn_rev.fish9
1 files changed, 1 insertions, 8 deletions
diff --git a/share/functions/__fish_print_svn_rev.fish b/share/functions/__fish_print_svn_rev.fish
index cbc3770a..008c16dd 100644
--- a/share/functions/__fish_print_svn_rev.fish
+++ b/share/functions/__fish_print_svn_rev.fish
@@ -1,10 +1,3 @@
function __fish_print_svn_rev --description 'Print svn revisions'
- svn info | grep "Last Changed Rev" | cut -d " " -f 4
- echo \{\tRevision at start of the date
- echo HEAD\tLatest in repository
- echo BASE\tBase rev of item\'s working copy
- echo COMMITTED\tLatest commit at or befor base
- echo PREV\tRevision just before COMMITTED
-
-
+ printf '%s' (svnversion | sed 's=[^0-9:]*==g')
end