git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-* in hook scripts
@ 2010-02-23 16:33 Eli Barzilay
  2010-02-23 23:59 ` Miklos Vajna
  0 siblings, 1 reply; 4+ messages in thread
From: Eli Barzilay @ 2010-02-23 16:33 UTC (permalink / raw)
  To: git

There are several sample hook scripts that use `git-*' -- should these
use `git *' instead?
-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-* in hook scripts
  2010-02-23 16:33 git-* in hook scripts Eli Barzilay
@ 2010-02-23 23:59 ` Miklos Vajna
  2010-02-24  0:32   ` Junio C Hamano
  2010-02-25  7:15   ` Eli Barzilay
  0 siblings, 2 replies; 4+ messages in thread
From: Miklos Vajna @ 2010-02-23 23:59 UTC (permalink / raw)
  To: Eli Barzilay; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 265 bytes --]

On Tue, Feb 23, 2010 at 11:33:36AM -0500, Eli Barzilay <eli@barzilay.org> wrote:
> There are several sample hook scripts that use `git-*' -- should these
> use `git *' instead?

No need to do so, `git --exec-path` is already in PATH when those
scripts are invoked.

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-* in hook scripts
  2010-02-23 23:59 ` Miklos Vajna
@ 2010-02-24  0:32   ` Junio C Hamano
  2010-02-25  7:15   ` Eli Barzilay
  1 sibling, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2010-02-24  0:32 UTC (permalink / raw)
  To: Miklos Vajna; +Cc: Eli Barzilay, git

Miklos Vajna <vmiklos@frugalware.org> writes:

> On Tue, Feb 23, 2010 at 11:33:36AM -0500, Eli Barzilay <eli@barzilay.org> wrote:
>> There are several sample hook scripts that use `git-*' -- should these
>> use `git *' instead?
>
> No need to do so, `git --exec-path` is already in PATH when those
> scripts are invoked.

We have been waiting until nobody remembers days we had dashes.  It may be
a good time to at least start thinking about updating them. v1.6.0 is one
year and half old.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: git-* in hook scripts
  2010-02-23 23:59 ` Miklos Vajna
  2010-02-24  0:32   ` Junio C Hamano
@ 2010-02-25  7:15   ` Eli Barzilay
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Barzilay @ 2010-02-25  7:15 UTC (permalink / raw)
  To: git

Miklos Vajna <vmiklos@frugalware.org> writes:

> On Tue, Feb 23, 2010 at 11:33:36AM -0500, Eli Barzilay <eli@barzilay.org> wrote:
>> There are several sample hook scripts that use `git-*' -- should
>> these use `git *' instead?
>
> No need to do so, `git --exec-path` is already in PATH when those
> scripts are invoked.

To make this a little more concrete, I was thinking about the fact
that `git cmd' can be different from `git-cmd' if I add a file with
the second name for one of the builtin commands.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-25  7:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-23 16:33 git-* in hook scripts Eli Barzilay
2010-02-23 23:59 ` Miklos Vajna
2010-02-24  0:32   ` Junio C Hamano
2010-02-25  7:15   ` Eli Barzilay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).