diff .bashrc @ 563:2daf6543e42c

adding multigrep.py
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 15 Dec 2013 22:19:05 -0800
parents 0d5cf87e5b7e
children 047a53a8fbad
line wrap: on
line diff
--- a/.bashrc	Wed Dec 11 02:52:53 2013 -0800
+++ b/.bashrc	Sun Dec 15 22:19:05 2013 -0800
@@ -483,6 +483,12 @@
     combinediff <(git diff) <(git diff --cached)
 }
 
+hg-add-commit() {
+    # add a file + commit
+    MESSAGE=$(hg add $@)
+    hg commit -m "${MESSAGE}"
+}
+
 hg-update-all() {
     # update all hg repositories in the current directory
     for i in *;