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

Re: Git cancel work

From
Petr Baudis <pasky@ucw.cz>
Date
Apr 24, 2005, 12:49 UTC
Message-ID
<20050424124930.GE1507@pasky.ji.cz>
In-Reply-To
<Pine.LNX.4.62.0504240033230.1980@mirrorlynx.com>

Dear diary, on Sun, Apr 24, 2005 at 06:34:44AM CEST, I got a letter where Dan Weber <dan@mirrorlynx.com> told me that...

> I noticed that git cancel was always doing a full checkout.  So I figured, 
> "what about just checking out the modified files?".  Attached is a patch 
> to do so.
But that is what checkout-cache -f -a does:
        if (!stat(path, &st)) {
                unsigned changed = cache_match_stat(ce, &st);
                if (!changed)
                        return 0;
in checkout_entry().
-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
C++: an octopus made by nailing extra legs onto a dog. -- Steve Taylor
Previous: Dan WeberNext: Dan Weber
Message 2 of 6 in “Git cancel work”
  1. Dan WeberApr 24, 2005
  2. Petr BaudisApr 24, 2005
  3. Dan WeberApr 24, 2005
  4. Petr BaudisApr 24, 2005
  5. Dan WeberApr 24, 2005
  6. Dan HolmsandApr 24, 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.