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

Re: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 31, 2008, 06:07 UTC
Message-ID
<7vzlicyj1o.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.LNX.1.00.0812302356040.19665@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
Show 12 quoted lines
> With that description, there's a bug: in addition to the above, it checks 
> out from the index any path which does match the <paths> but isn't in 
> <tree-ish>....
> ...
> (instead, you should get an error if a <path> doesn't match anything in 
> the <tree-ish> and only get those things that it matches in the 
> <tree-ish>.)
>
> I think I was too zealous sharing code back in February. I should have a 
> patch by the weekend if nobody beats me to it. (And I still think that, if 
> you hit this case, you must be confused, but git isn't helping by doing 
> what it does.)
I think that may be a good thing to do.

By the way, I am not opposed to have "git $revert <tree-ish> <path>..." that makes the work tree and the index identical to what existed in <tree-ish> at the named <paths>, i.e. checking out "the absense" of files in the named directory if <path> is a subtree. Because it is very established to use the command verb "revert" to mean making a counter-commit by now, we may have to use a word other than "revert" for that purpose, though.

Previous: Daniel BarkalowNext: Boyd Stephen Smith Jr.
Message 5 of 6 in “RE: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]”
  1. Conor RaffertyDec 31, 2008
  2. Boyd Stephen Smith Jr.Dec 31, 2008
  3. Junio C HamanoDec 31, 2008
  4. Daniel BarkalowDec 31, 2008
  5. Junio C HamanoDec 31, 2008
  6. Boyd Stephen Smith Jr.Dec 31, 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.