So if we have the following line item...
line_item
ad_distribution{:price_per_unit = 20}
buy_item{:id = 1}
buy_item{:id = 2,
:price_per_unit = 40}
# Find the pull request that introduced a given commit | |
COMMIT=c78f9ef # just an example commit id | |
# This will list the first few branches that contain this commit (including only "pull request" branches) | |
git branch -r --contains $COMMIT |grep "origin/pr" |sort |head |
# Really dumb script to fix up whitespace but only on the lines changed in the current | |
# commit. Run this script from your $PROJECT/.git/hooks/pre-commit | |
# | |
git diff HEAD --no-color > /tmp/stage.diff | |
git apply -R /tmp/stage.diff | |
git apply --whitespace=fix /tmp/stage.diff |
# Really dumb script to fix up whitespace but only on the lines changed in the current | |
# commit. Run this script from your $PROJECT/.git/hooks/pre-commit | |
# | |
git diff HEAD --no-color > /tmp/stage.diff | |
git apply -R /tmp/stage.diff | |
git apply --whitespace=fix /tmp/stage.diff |
So if we have the following line item... | |
line_item | |
ad_distribution{:price_per_unit = 20} | |
buy_item{:id = 1} | |
buy_item{:id = 2, | |
:price_per_unit = 40} | |
I think the first case is simple. Seems we should return.... |
So if we have the following line item...
line_item
ad_distribution{:price_per_unit = 20}
buy_item{:id = 1}
buy_item{:id = 2,
:price_per_unit = 40}
#!/bin/sh | |
# MVP precommit hook that keeps the Changelog up-to-date. | |
# | |
# Assumes that `pwd` is the project root | |
./scripts/gitlog-to-changelog >Changelog | |
git add Changelog |
#!/bin/sh | |
# MVP precommit hook that keeps the Changelog up-to-date. | |
# | |
# Assumes that `pwd` is the project root | |
./scripts/gitlog-to-changelog >Changelog | |
git add Changelog |
git diff HEAD --no-color > /tmp/stage.diff | |
git apply -R /tmp/stage.diff | |
git apply --whitespace=fix /tmp/stage.diff |
I hereby claim:
To claim this, I am signing this object:
# Lets thank Arnold for the headphones! | |
# | |
# Next time you're doing coding hours, get your headphones on and | |
# run this script in a terminal. | |
# | |
# Usage: | |
# | |
# 1. Download imagesnap from here: https://github.com/rharder/imagesnap | |
# 2. Update the global variables below according to where you put imagesnap | |
# and where you'd like the images to show up |