summaryrefslogtreecommitdiffstats
path: root/etc/examples/119-within-line-edits
diff options
context:
space:
mode:
Diffstat (limited to 'etc/examples/119-within-line-edits')
-rwxr-xr-xetc/examples/119-within-line-edits38
1 files changed, 38 insertions, 0 deletions
diff --git a/etc/examples/119-within-line-edits b/etc/examples/119-within-line-edits
new file mode 100755
index 00000000..1bea9c0b
--- /dev/null
+++ b/etc/examples/119-within-line-edits
@@ -0,0 +1,38 @@
+#!/bin/bash
+
+
+repo=$(mktemp -d)
+cd $repo
+
+git init
+git commit --allow-empty -m "Initial commit"
+
+cat > file1.js <<EOF
+{
+ if(g_themeController == nullptr)
+ {
+EOF
+
+cat > file2.js <<EOF
+myColor = color === control.palette.window ? themeController.themePalette.buttonColor
+ : themeController.themePalette.windowColor
+EOF
+
+git add file1.js file2.js
+git commit -m "Base commit"
+
+cat > file1.js <<EOF
+{
+ if(g_themeViewModel == nullptr)
+ {
+EOF
+
+cat > file2.js <<EOF
+myColor = color === control.palette.window ? themeViewModel.themePalette.basicBase
+ : themeViewModel.themePalette.windowColor
+EOF
+
+git add file1.js file2.js
+git commit -m "Changes"
+
+git log --patch