Skip to content

Instantly share code, notes, and snippets.

View dep-deprecated's full-sized avatar

danny peck dep-deprecated

  • Asheville, NC
View GitHub Profile
@dep-deprecated
dep-deprecated / shadiff
Created July 22, 2016 17:04
Show a list of commits unique to a git branch
#! /bin/bash
if [[ -z "$2" ]]; then
echo 'Shows commits exclusive to a branch (from master)'
echo 'sha_diff [new_branch] [old_branch] (ex: sha_diff tp1234_dep_int master)'
else
git fetch && git log $1 ^origin/$2 --no-merges --oneline
fi
@dep-deprecated
dep-deprecated / vow
Created July 22, 2016 17:05
Vim Open With: Open all files in vim matching a string
#! /bin/bash
if [[ -z "$1" ]]; then
echo 'missing search'
else
vim $(ag --html --js --css --py -l "$1") -c /"$1"
fi