Bram Moolenaar wrote:
>
>> Additionally, it would be nice IMO if *.patch files generated by
>> git-format-patch were highlighted in the same way as "gitsendemail"
>> files, since they look basically the same.
>>
>> I propose the patch below.
>
> I'll include this, thanks.
Thanks. Please note that in the patch I sent I stupidly transposed the
names of the events. You'll surely know whether it makes a difference;
I mention it just so that my OCD lets me sleep at night :).
>> +au BufNewFile,BufRead *.diff,*.rej setf diff
>> +au BufRead,BufNewFile *.patch
>> + \ if getline(1) =~ '^From [0-9a-f]\{40\} Mon Sep 17 00:00:00 2001$' |
>> + \ setf gitsendemail |
>
> That date looks very specific, is it always like that?
Yes, it is. It comes from this [0] function.
Cheers.
0: https://git.kernel.org/pub/scm/git/git.git/tree/log-tree.c#n362
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.