git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michal Ostrowski <mostrows@watson.ibm.com>
To: Junio C Hamano <junkio@cox.net>
Cc: Linus Torvalds <torvalds@osdl.org>,
	Git Mailing List <git@vger.kernel.org>,
	Andreas Ericsson <exon@op5.se>, Alex Riesen <raa.lkml@gmail.com>
Subject: Re: Teach the "git" command to handle some commands internally
Date: Mon, 27 Feb 2006 07:59:58 -0500	[thread overview]
Message-ID: <1141045198.19983.9.camel@brick.watson.ibm.com> (raw)
In-Reply-To: <7vy7zx65v0.fsf@assigned-by-dhcp.cox.net>

On Sun, 2006-02-26 at 15:46 -0800, Junio C Hamano wrote:
> Linus Torvalds <torvalds@osdl.org> writes:
> 
> > On Sun, 26 Feb 2006, Junio C Hamano wrote:
> >> 
> >> > There's one other change: the search order for external programs is 
> >> > modified slightly, so that the first entry remains GIT_EXEC_DIR, but the 
> >> > second entry is the same directory as the git wrapper itself was executed 
> >> > out of - if we can figure it out from argv[0], of course.
> >> 
> >> I am not sure about this part, though.
> >
> > Well, what it means is that _if_ you install all your "git" binaries in 
> > some directory that is not in your patch and is not GIT_EXEC_DIR, they 
> > will still magically work, assuming you don't do something strange.
> 
> I understood that part.  I was wondering if this change defeats
> what Michal (you sensibly CC'ed your message to) wanted to do
> earlier, going great length trying to avoid mucking with PATH
> and "where-ever git itself is found" in the last round.  After
> reviewing the change in 77cb17 commit, I realize my worry was
> unfounded.

The changes seem reasonable for now.  We can't avoid mucking with PATH
as long as we are going to be running shell scripts that depend on PATH
to invoke "git-xxx" or even "git xxx".  I don't seen any easy solution
to this that would not involve changing every script (albeit
mechanically) and would not be prone to lapses in discipline.

Any solution to this original problem (i.e. a special "PATH" for "git*")
would seem to be applicable to the behavior this patch introduces.


-- 
Michal Ostrowski <mostrows@watson.ibm.com>

      reply	other threads:[~2006-02-27 13:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-26 20:34 Teach the "git" command to handle some commands internally Linus Torvalds
2006-02-26 23:10 ` Junio C Hamano
2006-02-26 23:22   ` Linus Torvalds
2006-02-26 23:46     ` Junio C Hamano
2006-02-27 12:59       ` Michal Ostrowski [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1141045198.19983.9.camel@brick.watson.ibm.com \
    --to=mostrows@watson.ibm.com \
    --cc=exon@op5.se \
    --cc=git@vger.kernel.org \
    --cc=junkio@cox.net \
    --cc=raa.lkml@gmail.com \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).