mirror of
https://github.com/dandavison/delta.git
synced 2026-02-03 11:33:26 +01:00
18 lines
313 B
Bash
Executable File
18 lines
313 B
Bash
Executable File
#!/bin/bash
|
|
|
|
submodule=$(mktemp -d)
|
|
repo=$(mktemp -d)
|
|
cd $submodule
|
|
git init
|
|
git commit --allow-empty -m "Initial commit"
|
|
cd $repo
|
|
git init
|
|
git submodule add $submodule submodule
|
|
git commit --allow-empty -m "Initial commit"
|
|
touch submodule/a
|
|
cat >> .git/config <<EOF
|
|
[diff]
|
|
submodule = log
|
|
EOF
|
|
git diff | cat
|