pluginupdate.py: mention the date when updating plugins
will apply to vimPlugins/kakoune/luarocks update
This commit is contained in:
parent
62361d020d
commit
3fd1d89105
1 changed files with 4 additions and 1 deletions
|
@ -786,8 +786,11 @@ def update_plugins(editor: Editor, args):
|
|||
autocommit = not args.no_commit
|
||||
|
||||
if autocommit:
|
||||
from datetime import date
|
||||
editor.nixpkgs_repo = git.Repo(editor.root, search_parent_directories=True)
|
||||
commit(editor.nixpkgs_repo, f"{editor.attr_path}: update", [args.outfile])
|
||||
updated = date.today().strftime('%m-%d-%Y')
|
||||
|
||||
commit(editor.nixpkgs_repo, f"{editor.attr_path}: updated the {updated}", [args.outfile])
|
||||
|
||||
if redirects:
|
||||
update()
|
||||
|
|
Loading…
Reference in a new issue