能否将<条码>git diff从某种模式开始的起算线改为不变的?
例如,考虑如下:
git diff -U0
产出:
diff --git a/file_a.txt b/file_a.txt
index 26ed843..4071ff8 100644
--- a/file_a.txt
+++ b/file_a.txt
@@ -24 +24 @@
- * unimportant foo
+ * unimportant bar
diff --git a/file_b.txt b/file_b.txt
index c6d051e..4b3cf22 100644
--- a/file_b.txt
+++ b/file_b.txt
@@ -24 +24 @@
- * unimportant foo
+ * unimportant bar
@@ -48,0 +49 @@
+ this is important
@@ -56,0 +58 @@
+ this is also important
从星号开始的线(轨道模型<代码>)[[:空间:]**]*“不重要,我谨过滤只从<代码>git diff输出中含有这种线变化的文档。 在上述例子中,产出应报告<代码>。 仅作改动。 是否可能?