From: Jason McMullan <jason.mcmullan@timesys.com>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] ls-tree path restriction semantics fixes
Date: Fri, 27 May 2005 15:26:25 -0400 [thread overview]
Message-ID: <1117221986.11542.29.camel@jmcmullan.timesys> (raw)
In-Reply-To: <7vmzqgzg8a.fsf@assigned-by-dhcp.cox.net>
[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]
On Fri, 2005-05-27 at 11:16 -0700, Junio C Hamano wrote:
> What you really want is something similar to '-d' flag to
> /bin/ls. You are interested in the directory itself not its
> contents and I think your gripe is that giving a path that
> matches a tree always descends into it (i.e. there is no way to
> do the equivalent of "/bin/ls -d t"). I agree that it is a
> problem, but changing "/bin/ls t" not to show the directory
> contents of "t" is not a solution.
git-ls-tree reporting just the tree's hash is valid, because if
you want everything in that tree, you can just do:
git-ls-tree `git-ls-tree HEAD path/dir | (read m t h n; echo $h)`
I don't see the problem there.
> JM> $ git-ls-tree t t
> JM> 040000 tree 4eeb3990955b8badc4c14712b89d8cd9fff02f15 t
>
> I do not know what you wanted to say in this example. Your
> "Old" and "New" look the same to me.
The problem was that 't' and 't t' produced *vastly* different output
in the old code. 't' would emit everything in the tree, and 't t' would
only emit t's hash.
--
Jason McMullan <jason.mcmullan@timesys.com>
TimeSys Corporation
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2005-05-27 19:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-27 12:08 [PATCH] ls-tree path restriction semantics fixes Jason McMullan
2005-05-27 18:16 ` Junio C Hamano
2005-05-27 19:26 ` Jason McMullan [this message]
2005-05-28 3:31 ` Junio C Hamano
2005-05-28 7:05 ` [PATCH-RFC] Rewrite ls-tree to behave more like "/bin/ls -a" Junio C Hamano
2005-05-28 22:02 ` Jason McMullan
2005-05-29 18:44 ` 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=1117221986.11542.29.camel@jmcmullan.timesys \
--to=jason.mcmullan@timesys.com \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/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).