From: Junio C Hamano <gitster@pobox.com>
To: Sergey Sergeev <gurugray@yandex.ru>
Cc: Jeff King <peff@peff.net>, "git\@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: [PATCH] archive: let remote clients get reachable commits
Date: Fri, 22 Feb 2013 09:10:46 -0800 [thread overview]
Message-ID: <7vehg8s295.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <995301361532360@web22h.yandex.ru> (Sergey Sergeev's message of "Fri, 22 Feb 2013 13:26:00 +0200")
Sergey Sergeev <gurugray@yandex.ru> writes:
[jc: please do not top-post]
> You are right,
> I'll rethink this patch and write some test for this cases.
Thanks.
Note that this is harder to implement than one would naïvely think,
if one aims for a very generic solution, without walking the whole
history.
I personally think that it is OK to limit the scope to expressions
that start from the tip of ref and expressions that start with the
SHA-1 at the tip of ref, e.g.
master~12:Documentation
v2.6.11:arch/alpha
5dc01c595e6c6ec9ccda # tag v2.6.11
26791a8bcf0e6d33f43a:arch # tag v2.6.12
26791a8bcf0~12:arch # starting at 26791a8b and dig down
are OK, while forbidding the following:
c39ae07f393806ccf406 # tree of tag v2.6.11
9ee1c939d1cb936b1f98 # commit v2.6.12^0
9ee1c939d1cb936b1f98: # tree of commit v2.6.12^0
9ee1c939d1cb936b1f98:arch # subtree of commit v2.6.12^0
which will make it significantly easier to implement the necessary
validation in a robust way.
next prev parent reply other threads:[~2013-02-22 17:11 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-21 14:24 [PATCH] archive: let remote clients get reachable commits Sergey Segeev
2013-02-21 15:52 ` Jeff King
[not found] ` <995301361532360@web22h.yandex.ru>
2013-02-22 17:10 ` Junio C Hamano [this message]
2013-02-22 17:27 ` Jeff King
2013-02-22 18:06 ` Junio C Hamano
2013-02-22 18:26 ` Jeff King
2013-02-22 19:15 ` 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=7vehg8s295.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=gurugray@yandex.ru \
--cc=peff@peff.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).