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

Re: Merge git-gui into 1.5.0 ?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 13, 2007, 00:38 UTC
Message-ID
<20070213003815.GA31377@spearce.org>
In-Reply-To
<eqr0v4$rqd$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> wrote:
Show 13 quoted lines
> > On Mon, 12 Feb 2007, Shawn O. Pearce wrote:
> >> Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> >>> On Mon, 12 Feb 2007, Junio C Hamano wrote:
> >>>> $ git read-tree --prefix=git-gui/ git-gui/master
> >>>> $ git checkout git-gui
> >>> 
> >>> Didn't you mean "git checkout master" here?
> >> 
> >> I don't think so.  At this point the subdirectory git-gui is known
> >> in the index, so Junio is trying to get checkout-index to process
> >> those paths and create it in the working directory.
> 
> So it is "git checkout -- git-gui" then?

Yes. But this trick only works once. After that you cannot use `read-tree --prefix` to load the index with the git-gui/master branch, as there already is stuff under git-gui. Instead you need to whack the directory's files from the index, then reload it.

Or abuse mktree, as I did in the script I posted.
-- 
Shawn.
Previous: Jakub Narebski
Message 24 of 24 in “Merge git-gui into 1.5.0 ?”
  1. Shawn O. PearceFeb 11, 2007
  2. Mark LevedahlFeb 11, 2007
  3. Shawn O. PearceFeb 11, 2007
  4. Johannes SchindelinFeb 11, 2007
  5. Junio C HamanoFeb 11, 2007
  6. Shawn O. PearceFeb 11, 2007
  7. Johannes SchindelinFeb 11, 2007
  8. Shawn O. PearceFeb 11, 2007
  9. Johannes SchindelinFeb 11, 2007
  10. Michael S. TsirkinFeb 12, 2007
  11. Junio C HamanoFeb 12, 2007
  12. Michael S. TsirkinFeb 12, 2007
  13. Michael S. TsirkinFeb 12, 2007
  14. add negative -p to git-am, Re: Merge git-gui into 1.5.0 ?Johannes Schindelin, Feb 12, 2007
  15. Michael S. TsirkinFeb 12, 2007
  16. Johannes SchindelinFeb 12, 2007
  17. Michael S. TsirkinFeb 12, 2007
  18. Junio C HamanoFeb 12, 2007
  19. Shawn O. PearceFeb 12, 2007
  20. Johannes SchindelinFeb 12, 2007
  21. Shawn O. PearceFeb 12, 2007
  22. Johannes SchindelinFeb 12, 2007
  23. Jakub NarebskiFeb 13, 2007
  24. Shawn O. PearceFeb 13, 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.