You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(arch) rein /t/x (master) $ git diff
diff --git a/x.c b/x.c
index 7482fcb..17ac454 100644
--- a/x.c+++ b/x.c@@ -1,7 +1,8 @@-void main() {+int main() {
//filler
//filler
//filler
int x;
- int foo(x);++ int foo( x);
}
It's easy to see how one could accidentally commit whitespace changes that may not alter the AST but are still unwelcme changes.
I understand that difftastic stands out from other tools because it can read AST's, but is there no option to also show changes to whitespace? I mainly use difft in this scenario because of the syntax highlighting and the side-by-side display.
The text was updated successfully, but these errors were encountered:
So for the xth time now I accidentally commited a commit that included whitespace changes that I didn't catch because I used difft.
Here is an example of the output of
diff
vsdifft
on a dirty git. I modified the first line but also entered a newline and a space.It's easy to see how one could accidentally commit whitespace changes that may not alter the AST but are still unwelcme changes.
I understand that difftastic stands out from other tools because it can read AST's, but is there no option to also show changes to whitespace? I mainly use
difft
in this scenario because of the syntax highlighting and the side-by-side display.The text was updated successfully, but these errors were encountered: