mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-23 16:18:12 +08:00

Some cut versions don't have `--delimiter` or `--fields` but use the standard options `-d` and `-f`
11 lines
335 B
Fish
11 lines
335 B
Fish
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
|
|
|
|
|
|
end
|