Re: [PATCH] Documentation/git-ls-tree.txt: Add a caveat about prefixing pathspec

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Monday, July 28, 2008 - 2:23 am

Junio C Hamano <gitster@pobox.com> writes:


Ok, I now recall this bit:

        You are right, now that I understand the issue better, there's no good
        fix for this except perhaps introducing --no-prefix, which is not my
        itch to scratch. Here's my original wording improvement:

                Note that if you are within a subdirectory of your working copy,
                'git ls-tree' will automatically prepend the subdirectory prefix
                to the specified paths, and assume the prefix specified in case
                no paths were given - no matter what the tree object is! Thus,
                within a subdirectory, 'git ls-tree' behaves as expected only
                when run on a root tree object.

Eventually somebody may write a Porcelain that benefits from --no-prefix,
but it is safe to defer the implementation until the need becomes real.

I'll add some explanatory message to the documentation.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add a notice to the doc of git-ls-tree., Steve Frécinaux, (Sun Jul 20, 3:25 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Petr Baudis, (Sun Jul 20, 4:08 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Steve Frécinaux, (Sun Jul 20, 4:22 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Junio C Hamano, (Sun Jul 20, 4:24 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Petr Baudis, (Sun Jul 20, 4:39 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Junio C Hamano, (Sun Jul 20, 4:53 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Petr Baudis, (Sun Jul 20, 5:08 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Junio C Hamano, (Sun Jul 20, 5:14 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Petr Baudis, (Sun Jul 20, 5:22 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Junio C Hamano, (Sun Jul 20, 9:28 pm)
Re: [PATCH] Add a notice to the doc of git-ls-tree., Petr Baudis, (Mon Jul 21, 12:47 am)
Re: [PATCH] Documentation/git-ls-tree.txt: Add a caveat ab ..., Junio C Hamano, (Mon Jul 28, 2:23 am)