-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
b41dec4
commit 692fb19
Showing
3 changed files
with
92 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
|
||
|
||
repo=$(mktemp -d) | ||
cd $repo | ||
|
||
git init | ||
git commit --allow-empty -m "Initial commit" | ||
|
||
echo "did_emsg = FALSE;" > file.R | ||
|
||
git add file.R | ||
git commit -m "Base commit" | ||
|
||
echo "did_emsg == FALSE;" > file.R | ||
|
||
git add file.R | ||
git commit -m "Short change" | ||
|
||
git revert --no-edit HEAD | ||
|
||
echo "did_emsg = TRUE;" > file.R | ||
git add file.R | ||
git commit -m "Long change" | ||
|
||
git log --patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
|
||
|
||
repo=$(mktemp -d) | ||
cd $repo | ||
|
||
git init | ||
git commit --allow-empty -m "Initial commit" | ||
|
||
cat > file <<EOF | ||
aaaa a aaa | ||
bbbb b bbb | ||
cccc c ccc | ||
EOF | ||
|
||
git add file | ||
git commit -m "Base commit" | ||
|
||
cat > file <<EOF | ||
bbbb ! bbb | ||
dddd d ddd | ||
cccc ! ccc | ||
EOF | ||
|
||
git add file | ||
git commit -m "Changes" | ||
|
||
git log --patch |