# # # patch "lua_hooks.cc" # from [6db24bd9d204496a7bd2211151ccfba892046457] # to [8fbd09668a076a5193d95165b251a6ad3dbccdeb] # # patch "monotone.texi" # from [fe19d162d15d4f25397c4734ee026a47daafe83c] # to [6a8534e5e1e4045df89160f4d49b69a0fed06077] # ============================================================ --- lua_hooks.cc 6db24bd9d204496a7bd2211151ccfba892046457 +++ lua_hooks.cc 8fbd09668a076a5193d95165b251a6ad3dbccdeb @@ -591,7 +591,7 @@ lua_hooks::hook_get_default_command_opti ll.extract_str(arg).pop(); args.push_back(arg_type(arg)); } - return ll.ok(); + return ll.ok() && args.size() > 0; } bool ============================================================ --- monotone.texi fe19d162d15d4f25397c4734ee026a47daafe83c +++ monotone.texi 6a8534e5e1e4045df89160f4d49b69a0fed06077 @@ -9222,6 +9222,20 @@ @subsection User Defaults @option{--exclude} option argument will be able to replace or remove the already excluded @var{path}. +Simple example which enables recursive directory scanning for @command{mtn add} +by default: address@hidden address@hidden +function get_default_command_options(command) + local default_options = @address@hidden + if (command[1] == "add") then + table.insert(default_options, "--recursive") + end + return default_options +end address@hidden group address@hidden smallexample + @item get_passphrase (@var{keypair_id}) Returns a string which is the passphrase used to encrypt the private