in a normal git diff, output may look like this:
diff --git a/app/index.html b/app/index.html
index f1a34ce..723dc5c 100644
--- a/app/index.html
+++ b/app/index.html
@@ -9,6 +9,7 @@
{{content-for "head"}}
+ <link integrity="" rel="stylesheet" href="{{rootURL}}assets/tailwind.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/my-app.css">
is there a way to omit this:
index f1a34ce..723dc5c 100644
--- a/app/index.html
+++ b/app/index.html
@@ -9,6 +9,7 @@
So that all that's left is:
diff --git a/app/index.html b/app/index.html
{{content-for "head"}}
+ <link integrity="" rel="stylesheet" href="{{rootURL}}assets/tailwind.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css">
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/my-app.css">
This is the best I've been able to come up with:
git diff \
| sed -n '/^---/!p' \
| sed -n '/^+++/!p' \
| sed -n '/^@@/!p' \
| sed -n '/^index /!p'
But there has to be a better way?