Files
delta-mirror/etc/examples/140-within-line-edits
2020-08-05 16:37:09 -04:00

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