]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.058
- recognize btrfs, ext4, ext4dev and reiser4
[packages/vim.git] / 7.2.058
CommitLineData
65bfde4c
AG
1To: vim-dev@vim.org
2Subject: Patch 7.2.058
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.058
11Problem: Can't add a patch name to the ":version" output.
12Solution: Add the extra_patches array.
13Files: src/version.c
14
15
16*** ../vim-7.2.057/src/version.c Sat Nov 29 20:18:44 2008
17--- src/version.c Sun Nov 30 12:12:31 2008
18***************
19*** 794,799 ****
20--- 796,814 ----
21 0
22 };
23
24+ /*
25+ * Place to put a short description when adding a feature with a patch.
26+ * Keep it short, e.g.,: "relative numbers", "persistent undo".
27+ * Also add a comment marker to separate the lines.
28+ * See the official Vim patches for the diff format: It must use a context of
29+ * one line only. Use "diff -C2".
30+ */
31+ static char *(extra_patches[]) =
32+ { /* Add your patch description below this line */
33+ /**/
34+ NULL
35+ };
36+
37 int
38 highest_patch()
39 {
40***************
41*** 939,944 ****
42--- 954,972 ----
43 }
44 }
45
46+ /* Print the list of extra patch descriptions if there is at least one. */
47+ if (extra_patches[0] != NULL)
48+ {
49+ MSG_PUTS(_("\nExtra patches: "));
50+ s = "";
51+ for (i = 0; extra_patches[i] != NULL; ++i)
52+ {
53+ MSG_PUTS(s);
54+ s = ", ";
55+ MSG_PUTS(extra_patches[i]);
56+ }
57+ }
58+
59 #ifdef MODIFIED_BY
60 MSG_PUTS("\n");
61 MSG_PUTS(_("Modified by "));
62*** ../vim-7.2.057/src/version.c Sat Nov 29 20:18:44 2008
63--- src/version.c Sun Nov 30 12:12:31 2008
64***************
65*** 678,679 ****
66--- 678,681 ----
67 { /* Add new patch number below this line */
68+ /**/
69+ 58,
70 /**/
71
72--
73ARTHUR: Well, it doesn't matter. Will you go and tell your master that
74 Arthur from the Court of Camelot is here.
75GUARD #1: Listen, in order to maintain air-speed velocity, a swallow
76 needs to beat its wings 43 times every second, right?
77ARTHUR: Please!
78 The Quest for the Holy Grail (Monty Python)
79
80 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
81/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
82\\\ download, build and distribute -- http://www.A-A-P.org ///
83 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
This page took 0.056574 seconds and 4 git commands to generate.