mirror of
https://github.com/dandavison/delta.git
synced 2026-09-29 11:12:32 +02:00
27 lines
377 B
Bash
Executable File
27 lines
377 B
Bash
Executable File
#!/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
|