Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
git
提交
d8c416b2
G
git
项目概览
李少辉-开发者
/
git
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
git
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
d8c416b2
编写于
4月 11, 2010
作者:
J
Junio C Hamano
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
blame documentation: -M/-C notice copied lines as well as moved ones
Signed-off-by:
N
Junio C Hamano
<
gitster@pobox.com
>
上级
54fd955c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
9 deletion
+10
-9
Documentation/blame-options.txt
Documentation/blame-options.txt
+10
-9
未找到文件。
Documentation/blame-options.txt
浏览文件 @
d8c416b2
...
@@ -79,14 +79,15 @@ of lines before or after the line given by <start>.
...
@@ -79,14 +79,15 @@ of lines before or after the line given by <start>.
of the --date option at linkgit:git-log[1].
of the --date option at linkgit:git-log[1].
-M|<num>|::
-M|<num>|::
Detect moving lines in the file as well. When a commit
Detect moved or copied lines within a file. When a commit
moves a block of lines in a file (e.g. the original file
moves or copies a block of lines (e.g. the original file
has A and then B, and the commit changes it to B and
has A and then B, and the commit changes it to B and then
then A), the traditional 'blame' algorithm typically blames
A), the traditional 'blame' algorithm notices only half of
the lines that were moved up (i.e. B) to the parent and
the movement and typically blames the lines that were moved
assigns blame to the lines that were moved down (i.e. A)
up (i.e. B) to the parent and assigns blame to the lines that
to the child commit. With this option, both groups of lines
were moved down (i.e. A) to the child commit. With this
are blamed on the parent.
option, both groups of lines are blamed on the parent by
running extra passes of inspection.
+
+
<num> is optional but it is the lower bound on the number of
<num> is optional but it is the lower bound on the number of
alphanumeric characters that git must detect as moving
alphanumeric characters that git must detect as moving
...
@@ -94,7 +95,7 @@ within a file for it to associate those lines with the parent
...
@@ -94,7 +95,7 @@ within a file for it to associate those lines with the parent
commit.
commit.
-C|<num>|::
-C|<num>|::
In addition to `-M`, detect lines copied from other
In addition to `-M`, detect lines
moved or
copied from other
files that were modified in the same commit. This is
files that were modified in the same commit. This is
useful when you reorganize your program and move code
useful when you reorganize your program and move code
around across files. When this option is given twice,
around across files. When this option is given twice,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录