在某个时候,我设法为magit pull弹出窗口添加了一个选项。
此行以我的.emacs结尾(我相信在某些时候可以使用):
quantityFormControl = new FormControl();
OnProductSelected(){
this.quantityFormControl.setValidators(Validators.max(this.someVariable));
}
现在我得到了:
(magit-define-popup-option 'magit-pull-popup
?s "recurse submodules" "--recurse-submodules=yes")
根据以下信息,该电话对我来说看起来是正确的: https://github.com/magit/magit/wiki/Additional-proposed-infix-arguments-and-suffix-commands
eval: Symbol’s function definition is void: magit-define-popup-option
答案 0 :(得分:0)
在定义函数之前不能调用它。
(with-eval-after-load "magit-commit"
(magit-define-popup-option 'magit-commit-popup
?D "Override the author date" "--date=" #'read-from-minibuffer))
n.b。 "magit-popup"
是定义magit-define-popup-option
函数的库,但是我假设您只想在加载"magit-commit"
之后执行此操作(此时,您特别感兴趣的弹出窗口已经定义)。