···1063 return nil
1064}
106500000000000000000000001066// the combined format-patches of all the newest submissions in this stack
1067func (stack Stack) CombinedPatch() string {
1068 // go in reverse order because the bottom of the stack is the last element in the slice
···1063 return nil
1064}
10651066+// all pulls above this pull (including self) in this stack
1067+func (stack Stack) Above(pull *Pull) Stack {
1068+ position := stack.Position(pull)
1069+1070+ if position < 0 {
1071+ return nil
1072+ }
1073+1074+ return stack[:position+1]
1075+}
1076+1077+// all pulls below this pull (excluding self) in this stack
1078+func (stack Stack) StrictlyAbove(pull *Pull) Stack {
1079+ above := stack.Above(pull)
1080+1081+ if len(above) > 0 {
1082+ return above[:len(above)-1]
1083+ }
1084+1085+ return nil
1086+}
1087+1088// the combined format-patches of all the newest submissions in this stack
1089func (stack Stack) CombinedPatch() string {
1090 // go in reverse order because the bottom of the stack is the last element in the slice