目前,我有一些补丁通过git send-email发布到邮件列表中。 我收到了维护者,开发者的评论。 现在,我想发表评论,例如:谢谢,解释...
如何通过git send-email执行它们 尽管我尝试使用git send-email -in-reply-to,但命令似乎不正确
有人可以帮助我更正命令吗?
示例:
当我对补丁发表评论/回复时 https://patchwork.kernel.org/patch/10584893/
id-Msg 4f401a77-ae41-5a6e-3e10-51dad300e183@cogentembedded.com
我用
git send-email --in-reply-to=4f401a77-ae41-5a6e-3e10-51dad300e183@cogentembedded.com
随着包含文件 来自:还安阮 主题:Re:clk:瑞萨电子:r8a77970:为SDHI添加SD0H / SD0时钟
我无法成功。
谢谢您的阅读。
答案 0 :(得分:0)
以下是您可以根据需要编辑的示例:
const [canvas, setCanvas] = useState<fabric.Canvas | null>(null);
const [mode, setMode] = useState("freerun");
const canvasRef = React.useRef<HTMLCanvasElement>(null);
const modes = ["freerun", "edit"];
React.useEffect(() => {
const canvas = new fabric.Canvas(canvasRef.current, {
height: 800,
width: 800,
backgroundColor: 'yellow'
});
canvas.on('mouse:down', function (this: typeof canvas, opt: fabric.IEvent) {
const evt = opt.e as any;
console.log("currentMode", mode) // Not UPDATING - even though components profiler shows that "mode" state is now "edit", it still returns initial state - "freerun".
if (mode === "edit") {
console.log("edit mode, allow to scroll, etc...");
}
});
setCanvas(canvas);
return () => canvas.dispose();
}, [canvasRef])
const setNextMode = () => {
const index = modes.findIndex(elem => elem === mode);
const nextIndex = index + 1;
if (nextIndex >= modes.length) {
setMode(modes[0])
} else {
setMode(modes[nextIndex]);
}
}
return (
<>
<div>
<button onClick={setNextMode}>Current mode: { mode }</button>
</div>
{`Current width: ${width}`}
<div id="fabric-canvas-wrapper">
<canvas ref={canvasRef} />
</div>
</>
)
通过根据您的要求更改 <> 括号之间的字符串来编辑上述命令。执行命令时删除括号<>,只保留您编辑过的字符串。