{"push_id":714638138,"size":1,"distinct_size":1,"ref":"refs/heads/vim-v7-4-668","head":"42f740a53f0184c47ec7454272db1463adad9c39","before":"4514ccbf0027688e31ab385d79e6e804cc054147","commits":[{"sha":"42f740a53f0184c47ec7454272db1463adad9c39","author":{"email":"1a9d76ab6262529a26a9ee107b8696434b5d642b@gmail.com","name":"Felipe Morales"},"message":"vim-patch:7.4.688\n\n```\nupdated for version 7.4.668\nProblem:    Can't use a glob pattern as a regexp pattern.\nSolution:   Add glob2regpat(). (Christian Brabandt)\n```\n\nhttps://code.google.com/p/vim/source/detail?r=v7-4-668\n\nOriginal patch:\n\n```diff\ndiff --git a/src/nvim/eval.c b/src/nvim/eval.c\n--- a/src/nvim/eval.c\n+++ b/src/nvim/eval.c\n@@ -575,6 +575,7 @@ static void f_getwinposy __ARGS((typval_\nstatic void f_getwinvar __ARGS((typval_T *argvars, typval_T *rettv));\nstatic void f_glob __ARGS((typval_T *argvars, typval_T *rettv));\nstatic void f_globpath __ARGS((typval_T *argvars, typval_T *rettv));\n+static void f_glob2regpat  __ARGS((typval_T *argvars, typval_T\n*rettv));\nstatic void f_has __ARGS((typval_T *argvars, typval_T *rettv));\nstatic void f_has_key __ARGS((typval_T *argvars, typval_T *rettv));\nstatic void f_haslocaldir __ARGS((typval_T *argvars, typval_T *rettv));\n@@ -8142,6 +8143,7 @@ static struct fst\n     {\"getwinposy\",\t0, 0, f_getwinposy},\n     {\"getwinvar\",\t2, 3, f_getwinvar},\n     {\"glob\",\t\t1, 4, f_glob},\n+    {\"glob2regpat\",\t1, 1, f_glob2regpat},\n     {\"globpath\",\t2, 5, f_globpath},\n     {\"has\",\t\t1, 1, f_has},\n     {\"has_key\",\t\t2, 2, f_has_key},\n@@ -12500,6 +12502,20 @@ f_globpath(argvars, rettv)\n}\n\n/*\n+ * \"glob2regpat()\" function\n+ */\n+    static void\n+f_glob2regpat(argvars, rettv)\n+    typval_T\t*argvars;\n+    typval_T\t*rettv;\n+{\n+    char_u\t*pat = get_tv_string_chk(&argvars[0]);\n+\n+    rettv->v_type = VAR_STRING;\n+    rettv->vval.v_string = file_pat_to_reg_pat(pat, NULL, NULL, FALSE);\n+}\n+\n+/*\n* \"has()\" function\n*/\n     static void\ndiff --git a/src/nvim/version.c b/src/nvim/version.c\n--- a/src/nvim/version.c\n+++ b/src/nvim/version.c\n@@ -742,6 +742,8 @@ static char *(features[]) =\nstatic int included_patches[] =\n{   /* Add new patch number below this line */\n/**/\n+    668,\n+/**/\n     667,\n/**/\n     666,\n```","distinct":true,"url":"https://api.github.com/repos/fmoralesc/neovim/commits/42f740a53f0184c47ec7454272db1463adad9c39"}]}