Skip to content

Instantly share code, notes, and snippets.

@berikv
Created July 12, 2019 10:10
Show Gist options
  • Save berikv/030210cb7872344609f00117608e4717 to your computer and use it in GitHub Desktop.
Save berikv/030210cb7872344609f00117608e4717 to your computer and use it in GitHub Desktop.
Installs HEAD^ as the default relative commit for arc
#!/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