From: Junio C Hamano <gitster@pobox.com>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: "Boyd Stephen Smith Jr." <bss@iguanasuicide.net>,
Conor Rafferty <conor.rafferty@altmore.co.uk>,
Jeff Whiteside <jeff.m.whiteside@gmail.com>,
git@vger.kernel.org
Subject: Re: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]
Date: Tue, 30 Dec 2008 22:07:15 -0800 [thread overview]
Message-ID: <7vzlicyj1o.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.LNX.1.00.0812302356040.19665@iabervon.org> (Daniel Barkalow's message of "Wed, 31 Dec 2008 00:21:42 -0500 (EST)")
Daniel Barkalow <barkalow@iabervon.org> writes:
> 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.
next prev parent reply other threads:[~2008-12-31 6:09 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-31 2:30 for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned] Conor Rafferty
2008-12-31 3:40 ` Boyd Stephen Smith Jr.
2008-12-31 4:48 ` Junio C Hamano
2008-12-31 5:21 ` Daniel Barkalow
2008-12-31 6:07 ` Junio C Hamano [this message]
2008-12-31 15:14 ` Boyd Stephen Smith Jr.
-- strict thread matches above, loose matches on Subject: below --
2008-12-31 11:10 Conor Rafferty
2008-12-31 16:00 ` Daniel Barkalow
2008-12-31 10:59 Conor Rafferty
2008-12-31 2:27 Conor Rafferty
2008-12-31 2:35 ` Jeff Whiteside
2008-12-31 2:56 ` Boyd Stephen Smith Jr.
2008-12-31 3:10 ` Daniel Barkalow
2008-12-31 3:49 ` Daniel Barkalow
2008-12-31 12:17 ` Zorba
2008-12-31 13:48 ` Sitaram Chamarty
2008-12-31 16:24 ` Daniel Barkalow
2008-12-31 16:33 ` Sitaram Chamarty
2008-12-31 12:03 ` Zorba
2008-12-31 13:37 ` Sitaram Chamarty
2008-12-30 22:55 Conor Rafferty
2008-12-31 0:12 ` Boyd Stephen Smith Jr.
2008-12-31 2:22 ` Sitaram Chamarty
2008-12-30 22:36 Conor Rafferty
2008-12-30 23:31 ` Boyd Stephen Smith Jr.
2008-12-31 0:15 ` Daniel Barkalow
2008-12-31 2:22 ` Jeff Whiteside
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vzlicyj1o.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=barkalow@iabervon.org \
--cc=bss@iguanasuicide.net \
--cc=conor.rafferty@altmore.co.uk \
--cc=git@vger.kernel.org \
--cc=jeff.m.whiteside@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).