【问题标题】:Unified diff: What does @@ mean?统一差异:@@ 是什么意思?
【发布时间】:2012-03-08 01:13:20
【问题描述】:
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -1147,8 +1147,8 @@ static struct dentry *__lookup_hash(struct qstr *name, struct dentry *base,
  *  small and for now I'd prefer to have fast path as straight as possible.
  *  It _is_ time-critical.
  */
-static int do_lookup(struct nameidata *nd, struct qstr *name,
-           struct path *path, struct inode **inode)
+static int lookup_fast(struct nameidata *nd, struct qstr *name,
+              struct path *path, struct inode **inode)
 {
    struct vfsmount *mnt = nd->path.mnt;
    struct dentry *dentry, *parent = nd->path.dentry;
@@ -1217,7 +1217,6 @@ unlazy:
        }
    }

这是一段代码。 这条线是什么意思?谁能给我解释一下? 谢谢!

【问题讨论】:

标签: git diff


【解决方案1】:

它只是一个块标记。如果您想了解有关格式的更多信息,搜索“统一差异”可能会有所帮助。

第二个@@ 之后的行中的所有内容都被忽略,因此它通常用于显示与代码块相关的函数头。

【讨论】:

  • 两个@@之间表示第一行的行号,以及差异的左右两侧的大块的大小
猜你喜欢
  • 1970-01-01
  • 2017-02-15
  • 2011-05-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-09-30
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多