如何显示 git 日志中更改的完整文件
How to show complete files that changed in git log
如何显示在 gitlog 中更改的未缩写的文件?现在,文件被剪切成只显示删除代码行前后的一两行。我想显示每个更改的整个文件。
我 运行 当前的命令是 git log -w --full-history --date=local -p --format="%H"
我如何 运行 一个不缩写已更改文件的命令?
7d45603c29d0b7e451424cb5b181e6af16485a4f
diff --git a/ui/src/org/pentaho/di/ui/spoon/ExpandedContentManager.java b/ui/src/org/pentaho/di/ui/spoon/ExpandedContentManager.java
index 3c41b27..84db90a 100644
--- a/ui/src/org/pentaho/di/ui/spoon/ExpandedContentManager.java
+++ b/ui/src/org/pentaho/di/ui/spoon/ExpandedContentManager.java
@@ -33,6 +33,7 @@ import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.widgets.Control;
+import org.pentaho.di.core.Const;
import org.pentaho.di.ui.spoon.trans.TransGraph;
import java.util.function.Consumer;
@@ -160,6 +161,9 @@ public final class ExpandedContentManager {
if ( !isVisible( graph ) ) {
maximizeExpandedContent( browser );
}
+ if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) {
+ graph.extraViewComposite.setVisible( false );
+ }
browser.moveAbove( null );
browser.getParent().layout( true );
browser.getParent().redraw();
您可以使用 git diff --no-prefix -U1000
,其中 -U1000
是 1000 行代码,您可以根据自己的喜好进行更改
如何显示在 gitlog 中更改的未缩写的文件?现在,文件被剪切成只显示删除代码行前后的一两行。我想显示每个更改的整个文件。
我 运行 当前的命令是 git log -w --full-history --date=local -p --format="%H"
我如何 运行 一个不缩写已更改文件的命令?
7d45603c29d0b7e451424cb5b181e6af16485a4f
diff --git a/ui/src/org/pentaho/di/ui/spoon/ExpandedContentManager.java b/ui/src/org/pentaho/di/ui/spoon/ExpandedContentManager.java
index 3c41b27..84db90a 100644
--- a/ui/src/org/pentaho/di/ui/spoon/ExpandedContentManager.java
+++ b/ui/src/org/pentaho/di/ui/spoon/ExpandedContentManager.java
@@ -33,6 +33,7 @@ import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.widgets.Control;
+import org.pentaho.di.core.Const;
import org.pentaho.di.ui.spoon.trans.TransGraph;
import java.util.function.Consumer;
@@ -160,6 +161,9 @@ public final class ExpandedContentManager {
if ( !isVisible( graph ) ) {
maximizeExpandedContent( browser );
}
+ if ( Const.isOSX() && graph.isExecutionResultsPaneVisible() ) {
+ graph.extraViewComposite.setVisible( false );
+ }
browser.moveAbove( null );
browser.getParent().layout( true );
browser.getParent().redraw();
您可以使用 git diff --no-prefix -U1000
,其中 -U1000
是 1000 行代码,您可以根据自己的喜好进行更改