sponsor Vim development Vim logo Vim Book Ad

git_patch_tags.vim : Global plugin for adding patch tags from linux SubmittingPatches document

 script karma  Rating 11/5, Downloaded by 936  Comments, bugs, improvements  Vim wiki

created by
Antonio Ospite
script type
Global plugin for adding patch tags as defined in the linux kernel
Documentation/SubmittingPatches document, examples of patch tags are:
- Acked-by
- Signed-off-by
- Tested-by
- Reviewed-by

the plugin allows to add also a Copyright line.

The author name and email address are retrieved from the git configuration.


          Add a Acked-by tag getting developer info from git config

          Add a copyright line getting developer info from git config and using
          the current date

          Add a Reviewed-by tag getting developer info from git config

          Add a Signed-off-by tag getting developer info from git config

          Add a Tested-by tag getting developer info from git config
install details
Drop git_patch_tags.vim into your $HOME/.vim/plugin directory.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
git_patch_tags.vim 0.2 2013-10-11 7.0 Antonio Ospite Strip terminating NULL characters from the git commands

This is needed in order to prevent having ^A outputted in the git tags strings, because the system() function in vim is supposed to replace all NUL characters with SOH (0x01); see :help system.

The previous version of the script was working fine in 7.3 even without stripping the terminating NULL, but in 7.4 the behavior changed, see:
git_patch_tags.vim 0.1 2011-06-20 6.0 Antonio Ospite Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.