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

Re: [PATCH 9/9] Build in checkout

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 5, 2008, 22:45 UTC
Message-ID
<alpine.LSU.1.00.0802052244160.8543@racer.site>
In-Reply-To
<alpine.LNX.1.00.0802051716220.13593@iabervon.org>
Hi,
On Tue, 5 Feb 2008, Daniel Barkalow wrote:
Show 14 quoted lines
> On Tue, 5 Feb 2008, Johannes Schindelin wrote:
> 
> > I suggested that: to prevent the index from needing an update.
> > 
> > This is quite important if you have a large working tree, and switch 
> > branches from A to B.  For example, "make" will punish you where it 
> > hurts.
> 
> This isn't used for switching branches; this is used for checking out 
> paths. If you do "git checkout <not-head> -- <every single path>", make 
> will punish you, but why would you do that? I'd guess that people are 
> unlikely to have a significant number of non-changes in this piece of 
> code, just because they wouldn't list things that they didn't think had 
> changes.
For convenience, you can also say
	$ git checkout -- <path>
and expect checkout to not really touch the unchanged files.

Ciao, Dscho

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 7 of 9 in “Build in checkout”
  1. 9/9 Build in checkoutDaniel Barkalow, Feb 4, 2008
  2. Johannes SchindelinFeb 5, 2008
  3. Daniel BarkalowFeb 5, 2008
  4. Daniel BarkalowFeb 5, 2008
  5. Johannes SchindelinFeb 5, 2008
  6. Daniel BarkalowFeb 5, 2008
  7. Johannes SchindelinFeb 5, 2008
  8. Daniel BarkalowFeb 6, 2008
  9. Johannes SchindelinFeb 5, 2008

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.