From: Junio C Hamano <gitster@pobox.com>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Brandon Casey <drafnel@gmail.com>, Git List <git@vger.kernel.org>
Subject: Re: [Resend PATCH] t3903 (stash): add failing test for ref of form ^{/message}
Date: Wed, 17 Apr 2013 10:37:25 -0700 [thread overview]
Message-ID: <7vbo9df48a.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CALkWK0kJOSBN8XTJKBLOqi4tUjjm9unr=No65TtW9V0qvKmV-A@mail.gmail.com> (Ramkumar Ramachandra's message of "Wed, 17 Apr 2013 14:01:06 +0530")
Ramkumar Ramachandra <artagnon@gmail.com> writes:
> 1. Any stash that can be shown can be applied, but not necessarily
> popped or dropped (as the documentation indicates). The reason for
> this is simple: a pop/drop attempts to clear the entry in the stash
> reflog as well, but all stashes need to have a corresponding reflog
> entry (for instance, those created with 'stash create').
Correct.
To show or apply, you only need a product of "stash create" that may
not be linked anywhere in the refs or reflogs. But you can only pop
or drop something on the stash reflog.
> 2. IS_STASH_LIKE is a misnomer: all it checks is that the given <rev>
> is a merge commit.
The purpose of the logic is to reject a mistake to name stuff that
is clearly not a product of "stash create". The name is just being
humble by not claiming "I know this is definitely a product of
stash-create" but merely hinting "This smells like such an object";
I am not sure if that is a "misnomer".
You are free to try to think of a way to tighten the implemention to
reject a random two-or-three parent merge commit that is not a
product of "stash create". People already have looked at this code
since it was written, and didn't find a reasonable way to tighten it
without triggering false negatives, so I wouldn't be surprised if
anybody tried it again today and failed.
prev parent reply other threads:[~2013-04-17 17:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-16 18:09 [Resend PATCH] t3903 (stash): add failing test for ref of form ^{/message} Ramkumar Ramachandra
2013-04-16 18:41 ` Junio C Hamano
2013-04-16 20:23 ` Ramkumar Ramachandra
2013-04-16 21:06 ` Junio C Hamano
2013-04-16 18:57 ` Brandon Casey
2013-04-16 19:11 ` Junio C Hamano
2013-04-16 19:52 ` Brandon Casey
2013-04-16 19:53 ` Ramkumar Ramachandra
2013-04-16 20:11 ` Ramkumar Ramachandra
2013-04-16 21:29 ` Brandon Casey
2013-04-17 8:31 ` Ramkumar Ramachandra
2013-04-17 17:37 ` Junio C Hamano [this message]
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=7vbo9df48a.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=artagnon@gmail.com \
--cc=drafnel@gmail.com \
--cc=git@vger.kernel.org \
/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).