我正在使用git存储库。除git diff命令外,一切正常。 每当我修改任何文件,然后显示整个文件的git diff命令被修改,即使我修改了一小部分代码。显示整个文件的Git diff命令被修改,而不是显示修改过的小部分代码
什么可能是git diff显示整个文件被修改而不是代码的一小部分的原因? 也让我知道git diff配置的设置。
diff --git a/application/routes.php b/application/routes.php
index 2842f8d..6629d16 100755
--- a/application/routes.php
+++ b/application/routes.php @@ -1,671 +1,676 @@ -<?php -/** - * Set the routes. Each route must have a minimum of a name, a URI and a set of - * defaults for the URI. -/-?> +<?php +/* + * Set the routes. Each route must have a minimum of a name, a URI and a set of + * defaults for the URI. + */ +?>
你可以发布'git diff'的输出吗? – hammar 2011-05-26 05:30:19
diff --git a/application/routes.php b/application/routes.php index 2842f8d..6629d16 100755 --- a/application/routes.php +++ b/application/routes.php @ @ -1,671 +1,676 @@ - <?php -/** - *设置路线。每个路由必须至少有一个名称,一个URI和一组默认的URI。 - */ - ?> + <?php +/** + *设置路线。每条路由必须至少包含一个名称,一个URI和一组用于URI的默认值。 + */ +?> – Rahul 2011-05-26 05:44:30
将差异粘贴到注释中不会很好。也许你应该将其粘贴到pastebin(永久保存)并告诉我们URL。 – 2011-05-26 13:02:00