Bug 191332

Summary: Add a git utility method that allows the caller to determine if a specific commitish is within a specified range of commits.
Product: WebKit Reporter: Jer Noble <jer.noble>
Component: New BugsAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, dino, jeremyj-wk, slewis, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch for landing
none
Patch for landing none

Description Jer Noble 2018-11-06 14:42:13 PST
Add a git utility method that allows the caller to determine if a specific commitish is within a specified range of commits.
Comment 1 Jer Noble 2018-11-06 14:44:09 PST
Created attachment 354011 [details]
Patch
Comment 2 Jer Noble 2018-11-06 15:01:10 PST
Created attachment 354013 [details]
Patch
Comment 3 Jer Noble 2018-11-06 15:14:43 PST
Created attachment 354016 [details]
Patch
Comment 4 Dean Jackson 2018-11-12 10:21:30 PST
Comment on attachment 354016 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=354016&action=review

> Tools/Scripts/git-is-in-range:3
> +USAGE="<commit range> <commit> [commit...]"

Another request was given a set of ranges, find the overlapping range.

Maybe you should explain what a <commit range> looks like? I assume it is hash1..hash2?
Comment 5 Jer Noble 2019-02-20 15:02:32 PST
Created attachment 362549 [details]
Patch for landing
Comment 6 Jer Noble 2019-02-20 15:06:07 PST
Created attachment 362550 [details]
Patch for landing
Comment 7 Jer Noble 2019-02-20 15:08:58 PST
(In reply to Dean Jackson from comment #4)
> Comment on attachment 354016 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=354016&action=review
> 
> > Tools/Scripts/git-is-in-range:3
> > +USAGE="<commit range> <commit> [commit...]"
> 
> Another request was given a set of ranges, find the overlapping range.

Okay. Another request I've heard is: given two commits, figure out which is older (and presumably, whether one is reachable from the other).

> Maybe you should explain what a <commit range> looks like? I assume it is
> hash1..hash2?

Good idea. Added a LONG_USAGE.
Comment 8 WebKit Commit Bot 2019-02-20 15:25:29 PST
Comment on attachment 362550 [details]
Patch for landing

Clearing flags on attachment: 362550

Committed r241843: <https://trac.webkit.org/changeset/241843>
Comment 9 WebKit Commit Bot 2019-02-20 15:25:30 PST
All reviewed patches have been landed.  Closing bug.
Comment 10 Radar WebKit Bug Importer 2019-02-20 15:26:49 PST
<rdar://problem/48254663>