将常规 diff 补丁重新格式化为 git 格式
有没有一种简单的方法可以将常规(统一)差异补丁重新格式化为 git 格式补丁?我想做的是,获取某人发送给我的常规补丁,并使用 git 应用它,添加作者信息 - 就像它是 git 格式的补丁一样。
我真的不想开始手动重写补丁,所以我想知道是否有一个我还没有发现的 git 命令可以做到这一点。
这似乎是其他人以前一定遇到过的问题...
谢谢!
Is there an easy way to reformat a regular (unified) diff patch into a git-format patch? What I want to do, is take a regular patch someone sends me and apply it with git, adding author information – as if it were a git-format patch.
I don't really want to start manually rewriting the patch, so I was wondering if there is perhaps a git command I haven't found out about yet that does this.
It seems like a problem others must have had before...
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)