From: Linus Torvalds Date: Thu, 19 May 2005 00:34:47 GMT Subject: Re: [PATCH 1/2] Introduce git-run-with-user-path helper program. Message-ID: In-Reply-To: <7v64xgnl55.fsf@assigned-by-dhcp.cox.net> On Wed, 18 May 2005, Junio C Hamano wrote: > > PB> Yes. My point is that sometimes the Cogito commands have > PB> directory-specific functionality even when called without any arguments. > > PB> $ pwd > PB> /usr/src/linux > PB> $ date >>README > PB> $ cd fs > PB> $ date >>Makefile > PB> $ cg-commit > > PB> will commit only the fs/Makefile change. > > Ah, thanks. That what I missed. Note that if git-run-with-user-path just has some way to tell what the relative pathname of the original program was (say $DEF_SUBDIRECTORY), this could still fairly easily be handled: having the cg-Xcommit program say "if there are no arguments, we default to $DEF_SUBDIRECTORY" rather than "with no arguments, default to '.'". I don't personally much care, since this is all porcelain, but basically I don't think these things are in any way mutually incompatible, and I do believe that git-run-with-user-path _could_ be a good way to abstract out the "where the heck in the tree am I?" issues. Linus