7 ms·
`git diff --word-diff` is wonderful for this diff --git 1/old 2/new index 7164d6e..61a276c 100644 --- 1/old +++ 2/new @@ -1 +1 @@ I am {+not+} stud
by eadler 3y ago
`git diff --word-diff` is wonderful for this
diff --git 1/old 2/new
index 7164d6e..61a276c 100644
--- 1/old
+++ 2/new
@@ -1 +1 @@
I am {+not+} studying tonight
- yardstick 3y agoWow, why isn’t this the default?!
- _ikke_ 3y agogit diff by default outputs valid patch files that you can feed to patch out git apply. --word-diff does not Kernel development involves working with patches a lot, so it made sense to default to that, and --word-diff was added later anyway.
- yardstick 3y agoAh, makes sense, thanks for the explanation. I’ll have to create an alias for my use!