# HG changeset patch # User Johan Norberg # Date 1540835518 -3600 # Mon Oct 29 18:51:58 2018 +0100 # Node ID 4aedee2ce4760c8248894194e5203ec76b82aa01 # Parent c9169233d45ae2f0fefa0feb9ee816a87c6b05c8 Allow passing extra arguments to Hglogthis and Hgvlogthis * This allows for example :Hglogthis --follow and :Hglogthis -l 5 diff --git a/autoload/lawrencium/log.vim b/autoload/lawrencium/log.vim --- a/autoload/lawrencium/log.vim +++ b/autoload/lawrencium/log.vim @@ -1,7 +1,7 @@ function! lawrencium#log#init() abort - call lawrencium#add_command("Hglogthis :call lawrencium#log#HgLog(0, '%:p')") - call lawrencium#add_command("Hgvlogthis :call lawrencium#log#HgLog(1, '%:p')") + call lawrencium#add_command("-nargs=* Hglogthis :call lawrencium#log#HgLog(0, '%:p', )") + call lawrencium#add_command("-nargs=* Hgvlogthis :call lawrencium#log#HgLog(1, '%:p', )") call lawrencium#add_command("-nargs=* -complete=customlist,lawrencium#list_repo_files Hglog :call lawrencium#log#HgLog(0, )") call lawrencium#add_command("-nargs=* -complete=customlist,lawrencium#list_repo_files Hgvlog :call lawrencium#log#HgLog(1, )")