about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2022-01-29 11:08:21 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2022-01-29 16:01:39 +0000
commitc055c6464de20da13a6c805f017543f94b6e0ca9 (patch)
tree3949296c78ace00ea6de398675f73d3525844f50
parentee5e3d0c9d07ce3297959b89f96238dbff9b6400 (diff)
downloadzsh-c055c6464de20da13a6c805f017543f94b6e0ca9.tar.gz
zsh-c055c6464de20da13a6c805f017543f94b6e0ca9.tar.xz
zsh-c055c6464de20da13a6c805f017543f94b6e0ca9.zip
unposted: vcs_info: Add Vim modelines
... for consistency with all other vcs_info function files.
-rw-r--r--ChangeLog5
-rw-r--r--Functions/VCS_Info/VCS_INFO_patch2subject2
-rw-r--r--Functions/VCS_Info/VCS_INFO_set-branch-format2
-rw-r--r--Functions/VCS_Info/VCS_INFO_set-patch-format2
-rw-r--r--Misc/vcs_info-examples2
5 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1aa704c23..92646df79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2022-01-29  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* unposted: Functions/VCS_Info/VCS_INFO_patch2subject,
+	Functions/VCS_Info/VCS_INFO_set-branch-format,
+	Functions/VCS_Info/VCS_INFO_set-patch-format: vcs_info: Add
+	Vim modelines
+
 	* 49723: Functions/VCS_Info/VCS_INFO_quilt: vcs_info quilt:
 	Use quilt-patch-dir and ${QUILT_PATCHES} even when get-unapplied
 	hasn't been set
diff --git a/Functions/VCS_Info/VCS_INFO_patch2subject b/Functions/VCS_Info/VCS_INFO_patch2subject
index a467edcdb..5aa9efd23 100644
--- a/Functions/VCS_Info/VCS_INFO_patch2subject
+++ b/Functions/VCS_Info/VCS_INFO_patch2subject
@@ -1,3 +1,5 @@
+## vim:ft=zsh
+#
 # This function takes as an argument a filename of a patch and sets $REPLY to
 # a single-line "subject", or unsets it if no subject could be extracted.
 {
diff --git a/Functions/VCS_Info/VCS_INFO_set-branch-format b/Functions/VCS_Info/VCS_INFO_set-branch-format
index 8cff51b9a..cbab60e29 100644
--- a/Functions/VCS_Info/VCS_INFO_set-branch-format
+++ b/Functions/VCS_Info/VCS_INFO_set-branch-format
@@ -1,3 +1,5 @@
+## vim:ft=zsh
+#
 # A function for calling the branch-format hook
 #
 # Return the value to use in REPLY
diff --git a/Functions/VCS_Info/VCS_INFO_set-patch-format b/Functions/VCS_Info/VCS_INFO_set-patch-format
index e387110a2..c35b695c3 100644
--- a/Functions/VCS_Info/VCS_INFO_set-patch-format
+++ b/Functions/VCS_Info/VCS_INFO_set-patch-format
@@ -1,3 +1,5 @@
+## vim:ft=zsh
+#
 # This function is the common guts of the gen-applied-string /
 # gen-unapplied-string / set-patch-format dance of several backends.
 #
diff --git a/Misc/vcs_info-examples b/Misc/vcs_info-examples
index c2b02a2ac..94c47278d 100644
--- a/Misc/vcs_info-examples
+++ b/Misc/vcs_info-examples
@@ -1,3 +1,5 @@
+## vim:ft=zsh
+#
 # A collection of vcs_info usage examples
 
 ### Running vcs_info #########################################################