Created
July 12, 2019 10:10
-
-
Save berikv/030210cb7872344609f00117608e4717 to your computer and use it in GitHub Desktop.
Installs HEAD^ as the default relative commit for arc
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
#!/bin/bash | |
# | |
# See: https://medium.com/@kurtisnusbaum/stacked-diffs-keeping-phabricator-diffs-small-d9964f4dcfa6 | |
REPOSITORY_DIR=~/Work | |
for dir in "$REPOSITORY_DIR"/*/.git/arc/ | |
do | |
echo "HEAD^" > "$dir/default-relative-commit" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment