我在下面做了提交.它基本上显示了一些静态html被重命名和移动的文件.
commit 8449e207d529779f92bfe8b4eb2864a3f3edf69a
Author: Carl-Erik Kopseng <carl-erik@company.no>
Date: Sat Nov 19 14:40:47 2016 +0100
Integrate static html into epi blocks as partials
R079 Web/Views/Shared/Blocks/ChristmasLotteryBlock.cshtml Web/Views/Shared/Blocks/ChristmasLotteryBlock/Index.cshtml
R076 Web/Static/blocks/_block_christmas-lottery-intro.html Web/Views/Shared/Blocks/ChristmasLotteryBlock/_intro.cshtml
R099 Web/Static/blocks/_block_christmas-lottery-popup.html Web/Views/Shared/Blocks/ChristmasLotteryBlock/_popup.cshtml
M Web/Web.csproj
Run Code Online (Sandbox Code Playgroud)
076,099和079是指什么?我知道R可能代表"重命名".
引述的git diff文件:
状态字母C和R后面总是跟一个分数(表示移动或复制的源和目标之间的相似性百分比).状态字母M之后可以是文件重写的分数(表示不相似的百分比).
(如果您正在使用该-B标志,您将只看到M后跟一个数字.这是一个有点人为的例子,即添加-B以使M状态具有附加分数:
$ git diff --raw -M HEAD~182 | grep 'M[0-9]'
$ git diff --raw -B -M HEAD~182 | grep 'M[0-9]'
:100644 100644 2b1487d... bdb5579... M074 Makefile
:100644 100644 b639986... 8d8ebfe... M067 fcall.h
:100644 100644 bc4f828... 2e07ef6... M060 lib9p.h
:100644 100644 f9b5d18... 15e1ae8... M066 request.c
Run Code Online (Sandbox Code Playgroud)
此特定存储库具有184个从HEAD开始的第一次父提交:
$ git rev-list --count --first-parent HEAD
184
Run Code Online (Sandbox Code Playgroud)
与许多,虽然出现在第几提交中不是所有的档案,以便进行比较HEAD~182,以HEAD具有使用时产生许多碎配对许多变化-B.)