Thread (1 message) 1 message, 1 author, 2016-06-15

Re: git alias question

From: Miles Bader <hidden>
Date: 2016-06-15 22:52:42

Michael Horowitz [off-list ref] writes:
I was able to make the following 2 aliases, which work perfectly
except for one problem...

ldiff = "!git diff `git rev-list --reverse -n 2 HEAD -- $1` -- $1"
ldifft = "!git difftool `git rev-list --reverse -n 2 HEAD -- $1` -- $1"

The problem is the limitation that shell commands are always executed
at the top-level directory of the repository.
Hmmm, it'd be cool if git exported an environment variable containing
the CWD when it invoked external aliases like this...!

-Miles

-- 
Love is the difficult realization that something other than oneself is real.
[Iris Murdoch]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help