diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-02-18 01:03:48 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-02-18 01:03:48 +0100 |
commit | 1a212fb78de65b0e6091b65590b6ea0e17eb57aa (patch) | |
tree | cefac32f7399d494f678d09eb602958be2b3679e /lib/session.tes | |
parent | 1b07f32774dc0f9db8fe7906998061dc5bae2ad9 (diff) | |
parent | 5b74ef535e5137e040af1a1f5462e7f91e120d60 (diff) | |
download | sciteco-1a212fb78de65b0e6091b65590b6ea0e17eb57aa.tar.gz |
Merge branch 'master' of github.com:rhaberkorn/sciteco
Diffstat (limited to 'lib/session.tes')
-rw-r--r-- | lib/session.tes | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/lib/session.tes b/lib/session.tes index 9b924bc..455eaa7 100644 --- a/lib/session.tes +++ b/lib/session.tes @@ -34,11 +34,25 @@ EU[session.path]Q[$SCITECOCONFIG]/.teco_session ' } -! Call this to set up the session path unique to - the current Git repository (if there is one) ! +! Call this to set up the session path unique to the + Git repository of the current working directory (if there is one). + This requires the Git command-line client in $PATH. ! @[session.git]{ ! if there is no Git repository, session.path is left as it is ! :EG[session.path]git rev-parse --show-toplevel"S [* EQ[session.path] ZJ -D I/.teco_session ]* ' } + +! Call to set up the session path unique to the + SVN working copy containing the current working directory. + Requires the SVN client v1.7 or later in $PATH. ! +@[session.svn]{ + ! if there is no SVN working copy, session.path is left as it is ! + :EG.isvn info --xml"S [* + EQ.i + :S<wcroot-abspath>"S + .(S</.-2)X[session.path] :[session.path]/.teco_session + ' + ]* ' +} |