git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/2] Introduce git-run-with-user-path helper program.

From
Linus Torvalds <torvalds@osdl.org>
Date
May 19, 2005, 00:34 UTC
Message-ID
<Pine.LNX.4.58.0505181731450.18337@ppc970.osdl.org>
In-Reply-To
<7v64xgnl55.fsf@assigned-by-dhcp.cox.net>
On Wed, 18 May 2005, Junio C Hamano wrote:
Show 14 quoted lines
> 
> 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
Previous: Junio C HamanoNext: Junio C Hamano
Message 12 of 15 in “Introduce git-run-with-user-path helper program.”
  1. 1/2 Introduce git-run-with-user-path helper program.Junio C Hamano, May 16, 2005
  2. Petr BaudisMay 17, 2005
  3. Junio C HamanoMay 17, 2005
  4. Petr BaudisMay 17, 2005
  5. Junio C HamanoMay 17, 2005
  6. Petr BaudisMay 17, 2005
  7. Junio C HamanoMay 17, 2005
  8. Petr BaudisMay 18, 2005
  9. Junio C HamanoMay 18, 2005
  10. Petr BaudisMay 18, 2005
  11. Junio C HamanoMay 18, 2005
  12. Linus TorvaldsMay 19, 2005
  13. Junio C HamanoMay 19, 2005
  14. Thomas GlanzmannMay 19, 2005
  15. Junio C HamanoMay 19, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.