diff options
author | Nick Hu <me@nickhu.co.uk> | 2020-03-01 14:05:31 +0000 |
---|---|---|
committer | Nick Hu <me@nickhu.co.uk> | 2020-03-04 09:51:25 +0000 |
commit | a478f09d4b28179f747bc37867e254eff7e2fe5e (patch) | |
tree | e7ceffc61ff381df234f26ad5db562f27372a130 /pkgs/misc/vim-plugins/patches | |
parent | 0d470dc5ead3a0026d59eded0f34f09c103751cc (diff) | |
download | nixpkgs-a478f09d4b28179f747bc37867e254eff7e2fe5e.tar nixpkgs-a478f09d4b28179f747bc37867e254eff7e2fe5e.tar.gz nixpkgs-a478f09d4b28179f747bc37867e254eff7e2fe5e.tar.bz2 nixpkgs-a478f09d4b28179f747bc37867e254eff7e2fe5e.tar.lz nixpkgs-a478f09d4b28179f747bc37867e254eff7e2fe5e.tar.xz nixpkgs-a478f09d4b28179f747bc37867e254eff7e2fe5e.tar.zst nixpkgs-a478f09d4b28179f747bc37867e254eff7e2fe5e.zip |
vimPlugins.fruzzy: init at 2019-10-28
Diffstat (limited to 'pkgs/misc/vim-plugins/patches')
-rw-r--r-- | pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch b/pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch new file mode 100644 index 00000000000..62aaba118f2 --- /dev/null +++ b/pkgs/misc/vim-plugins/patches/fruzzy/get_version.patch @@ -0,0 +1,25 @@ +diff --git a/rplugin/python3/fruzzy_mod.nim b/rplugin/python3/fruzzy_mod.nim +index dba0689..0109285 100644 +--- a/rplugin/python3/fruzzy_mod.nim ++++ b/rplugin/python3/fruzzy_mod.nim +@@ -12,9 +12,7 @@ when defined(profile): + import nimprof + + proc getVersion(): string {.compileTime.}= +- let ver = staticExec("git describe --tags --always --dirty").strip() +- # let cTime = format(times.now(), "yyyy-MM-dd hh:mm:ss") +- let branch = staticExec("git rev-parse --abbrev-ref HEAD").strip() ++ let ver = "@version@" + var options:seq[string] = newSeq[string]() + if not defined(removelogger): + options.add("info") +@@ -26,7 +24,7 @@ proc getVersion(): string {.compileTime.}= + options.add("release") + let optionsStr = options.join(",") + +- return &"rev: {ver} on branch: {branch} with options: {optionsStr}" ++ return &"version: {ver} with options: {optionsStr}" + + let L = newConsoleLogger(levelThreshold = logging.Level.lvlDebug) + addHandler(L) + |