首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >是否可以向diff文件添加注释?

是否可以向diff文件添加注释?
EN

Stack Overflow用户
提问于 2018-02-06 03:54:08
回答 2查看 0关注 0票数 0

是否可将一定数量的未解析内容添加到一个diff文件中

EN

Stack Overflow用户

发布于 2018-02-06 13:08:39

可以用#而不是-+在diff文件中用于内联注释(可由GNU修补程序识别),或在@JakubJirutka提到的开头添加注释

 This may be some useful description of this patch that
 will be ignored by the diff/patch utility.
 --- a/foo  2002-02-21 23:30:39.942229878 -0800
 +++ b/foo  2002-02-21 23:30:50.442260588 -0800
 @@ -1,7 +1,6 @@
 # comments on the deletion of the two lines
 -The Way that can be told of is not the eternal Way;
 -The name that can be named is not the eternal name.
  The Nameless is the origin of Heaven and Earth;
 -The Named is the mother of all things.
 +The named is the mother of all things.
 +
  Therefore let there always be non-being,
    so we may see their subtlety,
  And let there always be being,
票数 0
EN
查看全部 2 条回答
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100007344

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档