[git] Re: [PATCH] Set GIT_PATHNAME_PREFIX with aliases.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On May  5, Jeff King wrote:
> On Wed, May 05, 2010 at 08:53:35AM +0200, Johannes Sixt wrote:
> 
> > Am 5/5/2010 2:51, schrieb Jeff King:
> > > On Tue, May 04, 2010 at 08:25:22PM -0400, Jared Hance wrote:
> > > 
> > >> The environment variable GIT_PATHNAME_PREFIX passes on the
> > >> current working directory (where the git command was called from)
> > >> to shell aliases (aliases that begin with "!"). This allows these
> > >> shell aliases to know the directory that the git command was called
> > >> from.
> > > 
> > > Seems like a reasonable goal, but...
> > 
> > Sorry, I disagree.
> > [reasons why it sucks]
> 
> Yes, I agree it sucks. The problem is that this information is
> totally lost now for shell aliases, so you can't even do these
> painful things.  Your alias simply doesn't have access to that
> information at all. I am open to better interfaces (my "reasonable"
> above was not a ringing endorsement, but rather "I can see why you
> might want to do this").

Something that Jonathan suggested earlier is a different magic
character instead of "!" that will do the cd -- perhaps a second
character would be more acceptable, something like "!!"...

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]