Skip to content

Instantly share code, notes, and snippets.

View garethstockwell's full-sized avatar

Gareth Stockwell garethstockwell

View GitHub Profile
@garethstockwell
garethstockwell / gist:1421ebb0f140e8ea56b0
Created January 29, 2015 10:32
git alias for showing branch descriptions
# bds = branch description show
# From https://gist.github.com/jeenuv/3145db36eb2a27ba022a
bds = "!f() { \
head=$(git symbolic-ref --short HEAD); \
git for-each-ref refs/heads --format='%(refname:short)' | \
while read br; do \
desc=$(git config --get branch.$br.description | head -n1); \
if [ \"$head\" = \"$br\" ]; then \
printf '* %-30s%-10s %s\\n' \"$(tput setaf 2)$br$(tput setaf 9)\" \"\" \"$desc\"; \
else \
@garethstockwell
garethstockwell / gist:49d13da5333303ad5fc7
Created January 29, 2015 10:26
git alias for showing branch descriptions
# bds = branch description show
# From https://gist.github.com/jeenuv/3145db36eb2a27ba022a
bds = "!f() { \
head=$(git symbolic-ref --short HEAD); \
git for-each-ref refs/heads --format='%(refname:short)' | \
while read br; do \
desc=$(git config --get branch.$br.description | head -n1); \
if [ \"$head\" = \"$br\" ]; then \
printf '* \\033[0;32m%-30s\\033[0m %s\\n' \"$br\" \"$desc\"; \
else \
@garethstockwell
garethstockwell / coloredlogcat.py_missing_tagtypes.diff
Created June 8, 2012 08:01
Add support for missing tag types to coloredlogcat.py
commit bcf3d2c3aeb72f8d295af6d19cfcdaefeb04dd18
Author: Gareth Stockwell <none>
AuthorDate: Fri Jun 8 09:02:18 2012 +0100
Commit: Gareth Stockwell <none>
CommitDate: Fri Jun 8 09:02:18 2012 +0100
Add missing tag types
diff --git a/coloredlogcat.py b/coloredlogcat.py
index d46dbf6..666231f 100644