Mercurial > hg > config
changeset 534:6ee5d5cca949
.bashrc
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Thu, 26 Sep 2013 02:19:42 -0700 |
parents | 4f20f634f93f |
children | 2c1543b5c78f |
files | .bashrc |
diffstat | 1 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/.bashrc Thu Sep 26 01:10:27 2013 -0700 +++ b/.bashrc Thu Sep 26 02:19:42 2013 -0700 @@ -166,10 +166,7 @@ emacs +`wc -l "$FILE"` $@ } -git-diff-master() { - # differences of a git repository with master - git diff $(git merge-base HEAD master) -} +### find functionality EXCLUDES="(\.svn)|(\.mo$)|(\.po$)|(\.pyc$)|(\.hg$)|(\.git$)" ff() { @@ -452,9 +449,20 @@ } difffiles() { + # which files are diffed; could use `lsdiff` grep '^+++ ' $@ | sed 's/+++ b\///' } +git-diff-master() { + # differences of a git repository with master + git diff $(git merge-base HEAD master) +} + +git-diff-total() { + # diff of both added + modified files + combinediff <(git diff) <(git diff --cached) +} + hg-update-all() { # update all hg repositories in the current directory for i in *;