summaryrefslogtreecommitdiff
path: root/.gitconfig
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2015-11-26 15:45:00 -0700
committerSean Whitton <spwhitton@spwhitton.name>2015-11-26 15:45:00 -0700
commit6ef3a6193c5f068201735b33c2c622882f9194bf (patch)
treea4ac2d24a5ea19986af5f418dfcb8c9496c701bf /.gitconfig
parentb7b92833949218e6fa158f7529c515f1f95d52d7 (diff)
downloaddotfiles-6ef3a6193c5f068201735b33c2c622882f9194bf.tar.gz
git exec alias
Diffstat (limited to '.gitconfig')
-rw-r--r--.gitconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitconfig b/.gitconfig
index e17f1551..c78cf5cf 100644
--- a/.gitconfig
+++ b/.gitconfig
@@ -18,6 +18,12 @@
ov = log --graph --full-history -n 30 --decorate --oneline --branches --all --simplify-by-decoration
co = checkout
+ # "git exec blah" runs blah from the root of the worktree since shell
+ # alias are always run from the root of the worktree
+
+ # http://stackoverflow.com/questions/957928/is-there-a-way-to-get-the-git-root-directory-in-one-command#comment9747528_957978
+ exec = "!exec "
+
[core]
# no pager thanks
pager =