| 1 | #!/bin/bash |
| 2 | |
| 3 | |
| 4 | repo=$(mktemp -d) |
| 5 | cd $repo |
| 6 | |
| 7 | git init |
| 8 | git commit --allow-empty -m "Initial commit" |
| 9 | |
| 10 | cat > file1.js <<EOF |
| 11 | { |
| 12 | if(g_themeController == nullptr) |
| 13 | { |
| 14 | EOF |
| 15 | |
| 16 | cat > file2.js <<EOF |
| 17 | myColor = color === control.palette.window ? themeController.themePalette.buttonColor |
| 18 | : themeController.themePalette.windowColor |
| 19 | EOF |
| 20 | |
| 21 | git add file1.js file2.js |
| 22 | git commit -m "Base commit" |
| 23 | |
| 24 | cat > file1.js <<EOF |
| 25 | { |
| 26 | if(g_themeViewModel == nullptr) |
| 27 | { |
| 28 | EOF |
| 29 | |
| 30 | cat > file2.js <<EOF |
| 31 | myColor = color === control.palette.window ? themeViewModel.themePalette.basicBase |
| 32 | : themeViewModel.themePalette.windowColor |
| 33 | EOF |
| 34 | |
| 35 | git add file1.js file2.js |
| 36 | git commit -m "Changes" |
| 37 | |
| 38 | git log --patch |