Created
November 28, 2018 02:20
-
-
Save drdavella/2385885af14fde5cc83e0f7f58e0bdc0 to your computer and use it in GitHub Desktop.
Script used to help assist with a semi-automated release process
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 | |
set -eu | |
if [ $# != 2 ]; then | |
echo "USAGE: $(basename $0) <file> <number>" | |
exit 1 | |
fi | |
args=("$@") | |
filename=${args[0]} | |
lineno=${args[1]} | |
git cherry-pick $(sed ${lineno}\!d $filename) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment