From: Jonathan Nieder <jrnieder@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Alan Stern <stern@rowland.harvard.edu>, git@vger.kernel.org
Subject: Re: Reachability lists in git
Date: Tue, 18 Nov 2014 12:22:51 -0800 [thread overview]
Message-ID: <20141118202250.GK6527@google.com> (raw)
In-Reply-To: <xmqqzjbouv0y.fsf@gitster.dls.corp.google.com>
Junio C Hamano wrote:
> Jonathan Nieder <jrnieder@gmail.com> writes:
>> --ancestry-path is my current favorite tool for walking-forward needs.
>
> Curious. I often want to answer this question:
[...]
> And my experiments with --ancestry-path has been less than ideal.
Thanks for an example. I've found it works okay interactively, less
so for scripted use (so I wish there were something better, though I
haven't sketched out what that something better would look like).
> Commit 982ac87 was reported to be faulty. What topic was it on
> and at which point was it merged to 'master'?
$ git log --graph --ancestry-path 982ac87^..origin/master
[...]
* | commit f30366b27a91dbc18328bccf3067cdfad4f0cfbc
|/ Merge: 97fefaf efa5f82
| Author: Junio C Hamano <gitster@pobox.com>
| Date: Wed Apr 3 09:34:04 2013 -0700
|
| Merge branch 'jc/directory-attrs-regression-fix'
|
| Fix 1.8.1.x regression that stopped matching "dir" (without
| trailing slash) to a directory "dir".
|
| * jc/directory-attrs-regression-fix:
| t: check that a pattern without trailing slash matches a directory
| dir.c::match_pathname(): pay attention to the length of string parameters
| dir.c::match_pathname(): adjust patternlen when shifting pattern
| dir.c::match_basename(): pay attention to the length of string parameters
| attr.c::path_matches(): special case paths that end with a slash
| attr.c::path_matches(): the basename is part of the pathname
[...]
|
* commit 982ac87316a1cf5126888157bdcbfa32268ebe47
Author: Jeff King <peff@peff.net>
Date: Thu Mar 28 17:47:47 2013 -0400
dir.c::match_pathname(): adjust patternlen when shifting pattern
> - What is the 'bottom' of the topic, that is, the commit
> reachable from the faulty commit that was already on 'master'
> when the faulty commit was written the first time?
$ git tag the-merge f30366b27a91dbc18328bccf3067cdfad4f0cfbc
$ git merge-base 982ac87 the-merge^
9db9eecfe5c2490d17c0d4bd5452e4cb1d0948c5
> - What is the 'top' of the topic, that is, were there more
> commits made on top to build on the faulty commit on the
> topic before the whole thing was merged to 'master'?
$ git log --oneline 982ac87..the-merge^2
efa5f82 t: check that a pattern without trailing slash matches a directory
ab3aebc dir.c::match_pathname(): pay attention to the length of string parameters
> - Were there follow-up fixes and enhancements on the topic
> after the topic was merged to 'master' (this is harder)?
There's only one line coming out of the-merge^2 in the ancestry-path
graph, so there were no such follow-up fixes.
Jonathan
next prev parent reply other threads:[~2014-11-18 20:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-18 19:03 Reachability lists in git Alan Stern
2014-11-18 19:41 ` Jonathan Nieder
2014-11-18 20:13 ` Junio C Hamano
2014-11-18 20:22 ` Jonathan Nieder [this message]
2014-11-18 20:27 ` Jonathan Nieder
2014-11-18 20:33 ` Junio C Hamano
2014-11-18 20:29 ` Alan Stern
2014-11-18 20:32 ` Jonathan Nieder
2014-11-18 20:45 ` Alan Stern
2014-11-18 21:05 ` Junio C Hamano
2014-11-18 21:11 ` Junio C Hamano
2014-11-18 21:16 ` Alan Stern
2014-11-18 21:22 ` Junio C Hamano
2014-11-18 21:37 ` Alan Stern
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=20141118202250.GK6527@google.com \
--to=jrnieder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=stern@rowland.harvard.edu \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.