From: "Vadim Misbakh-Soloviov" <mva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/
Date: Fri, 10 Dec 2021 11:41:05 +0000 (UTC) [thread overview]
Message-ID: <1639135706.b6027756f5bdfaaa24b26c5472f8904f78e86c3e.mva@gentoo> (raw)
commit: b6027756f5bdfaaa24b26c5472f8904f78e86c3e
Author: Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 10 11:28:26 2021 +0000
Commit: Vadim Misbakh-Soloviov <mva <AT> gentoo <DOT> org>
CommitDate: Fri Dec 10 11:28:26 2021 +0000
URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=b6027756
gentoo-common: wrap file around <=80 cols
Signed-off-by: Vadim Misbakh-Soloviov <mva <AT> gentoo.org>
plugin/gentoo-common.vim | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/plugin/gentoo-common.vim b/plugin/gentoo-common.vim
index 50478ba..306542e 100644
--- a/plugin/gentoo-common.vim
+++ b/plugin/gentoo-common.vim
@@ -13,9 +13,15 @@ let g:loaded_gentoo_common=1
fun! GentooGetUser()
let l:result = expand("\$ECHANGELOG_USER")
if l:result ==# "\$ECHANGELOG_USER"
- let l:email = executable('git') ? trim(system('git config --global user.email')) : expand('$HOST')
- let l:name = executable('git') ? trim(system('git config --global user.name')) : expand('$USER')
- let l:result = l:name . ' <' . l:email . '>'
+ let l:gitcfg = "git config --global "
+ if executable(git)
+ let l:email = trim(system(l:gitcfg . "user.email"))
+ let l:name = trim(system(l:gitcfg . "user.name"))
+ else
+ let l:email = expand("$HOST")
+ let l:name = expand("$USER")
+ endif
+ let l:result = l:name . " <" . l:email . ">"
endif
return l:result
endfun
@@ -59,7 +65,8 @@ fun! GentooGetPythonTargets()
let l:pyexec_path = "/etc/python-exec/python-exec.conf"
if filereadable(l:pyexec_path)
- let l:pys = readfile(l:pyexec_path)->filter("v:val =~ '^[^#-]'")->sort()
+ let l:pys = readfile(l:pyexec_path)->filter("v:val =~ '^[^#-]'")
+ \ ->sort()
let l:py3s = []
let l:others = []
for l:py in l:pys
@@ -75,12 +82,15 @@ fun! GentooGetPythonTargets()
if len(l:py3s) ==# 1
let l:impls = l:impls->add("python3.".l:py3s->join())
elseif len(l:py3s) > 1
- let l:impls = l:impls->add("python3.{".l:py3s->sort('N')->join(",")."}")
+ let l:impls = l:impls->add("python3.{".l:py3s->sort('N')
+ \ ->join(",")."}")
endif
let l:py3 = flatten(l:impls->add(l:others))->join()
endif
if empty(l:py3)
- let l:py3 = system("python -c 'import epython; print(epython.EPYTHON)'")->substitute("\n","","g")
+ let l:py3 =
+ \ system("python -c 'import epython; print(epython.EPYTHON)'")
+ \ ->substitute("\n", "", "g")
endif
let l:pythons = substitute(l:py3, "[.]", "_", "g")
next reply other threads:[~2021-12-10 11:41 UTC|newest]
Thread overview: 79+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-10 11:41 Vadim Misbakh-Soloviov [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-06-26 10:50 [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/ Michał Górny
2025-03-08 16:11 Michał Górny
2025-03-08 16:11 Michał Górny
2023-12-27 15:58 Michał Górny
2023-11-02 12:58 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-06-14 14:25 Michał Górny
2023-03-15 8:29 Michał Górny
2023-03-14 17:39 Michał Górny
2023-03-14 17:39 Michał Górny
2023-02-01 5:03 Michał Górny
2023-01-02 18:43 Michał Górny
2022-12-04 14:47 Michał Górny
2022-07-13 5:26 Michał Górny
2022-05-02 19:06 Michał Górny
2022-05-02 19:06 Michał Górny
2022-02-06 11:59 Michał Górny
2022-02-03 8:36 Michał Górny
2022-02-03 8:36 Michał Górny
2022-02-03 8:36 Michał Górny
2022-02-03 8:36 Michał Górny
2022-01-26 8:28 Michał Górny
2022-01-26 8:28 Michał Górny
2022-01-26 8:28 Michał Górny
2021-12-10 11:41 Vadim Misbakh-Soloviov
2021-12-08 22:40 Michał Górny
2021-11-06 11:05 Michał Górny
2021-09-11 14:02 Mike Gilbert
2021-08-28 11:20 Michał Górny
2021-08-28 11:02 Michał Górny
2021-07-16 18:36 Michał Górny
2021-07-16 15:30 Michał Górny
2021-07-16 15:30 Michał Górny
2020-10-07 10:07 Michał Górny
2020-06-05 5:28 Michał Górny
2020-06-04 6:02 Michał Górny
2020-03-08 13:24 Michał Górny
2019-12-13 18:29 Mikle Kolyada
2019-12-13 18:27 Mikle Kolyada
2019-11-27 8:16 Michał Górny
2019-08-17 6:52 Michał Górny
2019-06-09 17:35 Michał Górny
2018-09-16 17:17 Michał Górny
2018-08-27 19:52 James Le Cuirot
2018-08-20 20:47 Michał Górny
2018-08-14 14:13 Michał Górny
2018-08-14 14:13 Michał Górny
2018-08-14 13:58 Michał Górny
2018-08-14 13:55 Michał Górny
2017-02-25 16:09 Mike Gilbert
2017-02-25 16:06 Mike Gilbert
2017-02-25 16:03 Mike Gilbert
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-03-05 23:35 Tim Harder
2016-02-01 23:42 Tim Harder
2015-08-10 15:25 Mike Gilbert
2014-11-02 0:28 Tim Harder
2013-06-18 22:36 Tim Harder
2013-06-18 22:36 Tim Harder
2013-02-05 1:25 Tim Harder
2013-01-24 20:00 Tim Harder
2013-01-23 22:53 Tim Harder
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1639135706.b6027756f5bdfaaa24b26c5472f8904f78e86c3e.mva@gentoo \
--to=mva@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox