File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3026,7 +3026,10 @@ local function command_display_filter()
3026
3026
end
3027
3027
3028
3028
-- Initialize the argmatcher. This may be called repeatedly.
3029
+ local ever_inited
3029
3030
local function init (argmatcher , full_init )
3031
+ ever_inited = true
3032
+
3030
3033
-- When doing a full init, must reset in order to maintain the sort order.
3031
3034
-- Full init is used from the setdelayinit callback function, for an alias
3032
3035
-- to be able to parse arguments for the command it aliases.
@@ -3107,7 +3110,6 @@ local cached_cwd
3107
3110
local cached_repo
3108
3111
3109
3112
local git_parser = parser ()
3110
- init (git_parser , false --[[ full_init]] )
3111
3113
if git_parser .setdelayinit then
3112
3114
git_parser :setdelayinit (function (argmatcher )
3113
3115
local cwd = os .getcwd ()
@@ -3120,8 +3122,13 @@ if git_parser.setdelayinit then
3120
3122
init (argmatcher , true --[[ full_init]] )
3121
3123
end
3122
3124
end
3125
+ if not ever_inited then
3126
+ init (git_parser , false --[[ full_init]] )
3127
+ end
3123
3128
end
3124
3129
end )
3130
+ else
3131
+ init (git_parser , false --[[ full_init]] )
3125
3132
end
3126
3133
3127
3134
clink .arg .register_parser (" git" , git_parser )
You can’t perform that action at this time.
0 commit comments