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 10/4, Downloaded by 491  Comments, bugs, improvements  Vim wiki

created by
Antonio Ospite
 
script type
utility
 
description
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.

Examples:

  <Leader>ack
          Add a Acked-by tag getting developer info from git config

  <Leader>cpy
          Add a copyright line getting developer info from git config and using
          the current date

  <Leader>rev
          Add a Reviewed-by tag getting developer info from git config

  <Leader>sob
          Add a Signed-off-by tag getting developer info from git config

  <Leader>tst
          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:
http://code.google.com/p/vim/source/detail?r=25f67b62afd8c58b6c661961cc762f00ee89e562#
http://code.google.com/p/vim/source/detail?r=3ddec3d25bd178d4f90114bce9ce889f3889e6d2#
git_patch_tags.vim 0.1 2011-06-20 6.0 Antonio Ospite Initial upload
ip used for rating: 18.234.51.17

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.
   
OSDN.net Logo