From: Thomas Rast <trast@student.ethz.ch>
To: <git@vger.kernel.org>
Cc: Junio C Hamano <gitster@pobox.com>
Subject: Re: [RFC PATCH] ls-tree: dump full tree if it was named as such
Date: Sun, 14 Feb 2010 17:33:52 +0100 [thread overview]
Message-ID: <201002141733.53137.trast@student.ethz.ch> (raw)
In-Reply-To: <7vpr4fo85r.fsf@alter.siamese.dyndns.org>
[I noticed only just now that you only sent this to me. Accidentally
I suppose?]
On Monday 08 February 2010 20:10:40 Junio C Hamano wrote:
>
> This obviously was meant to be used with the full tree recorded by a
> commit and what you are seeing (e.g. cd to "valgrind" that is not even
> tracked, and pretend HEAD:t were the full contents---the full contents of
> the tree limited to the work tree location "valgrind" is shown) is an
> artifact of that.
>
> I think the right solution is along the lines of --full-tree option to
> allow people (i.e. scripts) to ask for the exact tree contents without any
> funny path limiting based on the location in the work tree. They can
> apply whatever path limiting from the command line, e.g. by running
>
> git ls-tree --full-tree HEAD:t valgrind
>
> instead of running
>
> mkdir -p valgrind && cd valgrind && git ls-tree HEAD:t
>
> when they want to apply path limit to the ls-tree output.
I guess in the (very) long run, the scripts should be forced to always
use --full-tree so that we can eventually make it the default?
I'm just not sure how the existing behaviour could ever be useful,
though admittedly 'git ls-tree $(git write-tree)' would change
semantics if you're in a subdirectory.
--
Thomas Rast
trast@{inf,student}.ethz.ch
next prev parent reply other threads:[~2010-02-14 16:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-08 15:59 [RFC PATCH] ls-tree: dump full tree if it was named as such Thomas Rast
[not found] ` <7vpr4fo85r.fsf@alter.siamese.dyndns.org>
2010-02-14 16:33 ` Thomas Rast [this message]
2010-02-15 1:47 ` Junio C Hamano
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=201002141733.53137.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).