pluginupdate.py: mention the date when updating plugins

will apply to vimPlugins/kakoune/luarocks update
This commit is contained in:
Matthieu Coudron 2023-10-19 12:08:26 +02:00
parent 62361d020d
commit 3fd1d89105

View File

@ -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()