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

Re: [PATCH v3] Support ent:relative_path

From
Martin Waitz <tali@admingilde.org>
Date
May 5, 2007, 19:32 UTC
Message-ID
<20070505193214.GD30511@admingilde.org>
In-Reply-To
<20070505033039.GD16538@spearce.org>
On Fri, May 04, 2007 at 11:30:39PM -0400, Shawn O. Pearce wrote:
Show 19 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> > On Fri, 4 May 2007, Dana How wrote:
> > 
> > > Most commands accept relative paths,  but this is
> > > not true of arguments in ent:path format.  This
> > > patch makes all of the following git-show commands
> > > work in the git source tree (not just the first):
> > >  % cd xdiff
> > >  % git-show v1.5.2-rc0:xdiff/xemit.h
> > >  % git-show v1.5.2-rc0:./xemit.h
> > >  % git-show v1.5.2-rc0:../sha1_name.c
> > 
> > ACK.
> 
> Double ACK.  I'm in complete agreement with every point Dscho has
> made in this thread, even if I haven't quoted it.  ;-)
> 
> I *really* do not want to see "<tree-ish>:<path>" to mean include
> the current prefix, *especially* when a bare repository is involved.

we could also introduce "<tree-ish>/<path>" for absolute path entries. This would make a lot of sense for submodules:

	git show "<tree-ish>/path/to/submodule/path/inside/submodule

with only : it would not look that nice ;-) OK, we could simply say that submodules are special and that you don't have to use : to separate a commit (the submodule entry) from the path inside.

aside from that I would also really like to have both absolute and relative ways to name objects.

-- 
Martin Waitz
Previous: Shawn O. PearceNext: Junio C Hamano
Message 5 of 21 in “Support ent:relative_path”
  1. Support ent:relative_pathDana How, May 5, 2007
  2. Jakub NarebskiMay 5, 2007
  3. Johannes SchindelinMay 5, 2007
  4. Shawn O. PearceMay 5, 2007
  5. Martin WaitzMay 5, 2007
  6. Junio C HamanoMay 5, 2007
  7. Martin WaitzMay 5, 2007
  8. Johannes SchindelinMay 6, 2007
  9. Martin WaitzMay 6, 2007
  10. Johannes SchindelinMay 6, 2007
  11. Alex RiesenMay 5, 2007
  12. Junio C HamanoMay 5, 2007
  13. Dana HowMay 5, 2007
  14. Alex RiesenMay 5, 2007
  15. Johannes SchindelinMay 5, 2007
  16. Junio C HamanoMay 6, 2007
  17. Johannes SchindelinMay 6, 2007
  18. Junio C HamanoMay 6, 2007
  19. Johannes SchindelinMay 6, 2007
  20. Junio C HamanoMay 7, 2007
  21. Dana HowMay 7, 2007

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.