This file contains hidden or 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 | |
| # git functions | |
| __git_branch_info() { | |
| git for-each-ref --format="%(refname:short) %(upstream:short)" refs/heads | \ | |
| while read local remote | |
| do | |
| [ -z "$remote" ] && continue | |
| git rev-list --left-right ${local}...${remote} -- 2>/dev/null >/tmp/git_upstream_status_delta || continue | |
| LEFT_AHEAD=$(grep -c '^<' /tmp/git_upstream_status_delta) |
This file contains hidden or 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
| /usr/local/bin/make-completion-wrapper: | |
| #!/bin/sh | |
| # Author.: Ole J | |
| # Date...: 23.03.2008 | |
| # License: Whatever | |
| # Wraps a completion function | |
| # make-completion-wrapper <actual completion function> <name of new func.> <alias> | |
| # <command name> <list supplied arguments> | |
| # eg. |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """ | |
| ignore_moves.py v0.2 | |
| Filter relocated lines from a unified diff format stream. | |
| Offered under the terms of the MIT License at github.com | |
| Taken from http://stackoverflow.com/questions/1380333/ | |
| """ | |
| import sys | |
| from optparse import OptionParser |
NewerOlder