diff options
Diffstat (limited to 'src/sub_commands')
| -rw-r--r-- | src/sub_commands/list.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sub_commands/list.rs b/src/sub_commands/list.rs index 9d02eb1..008872b 100644 --- a/src/sub_commands/list.rs +++ b/src/sub_commands/list.rs | |||
| @@ -720,6 +720,9 @@ pub fn get_most_recent_patch_with_ancestors( | |||
| 720 | .find(|e| e.id.to_string().eq(&event_id_to_search)) | 720 | .find(|e| e.id.to_string().eq(&event_id_to_search)) |
| 721 | { | 721 | { |
| 722 | res.push(event.clone()); | 722 | res.push(event.clone()); |
| 723 | if event_is_patch_set_root(event) { | ||
| 724 | break; | ||
| 725 | } | ||
| 723 | event_id_to_search = get_event_parent_id(event).unwrap_or_default(); | 726 | event_id_to_search = get_event_parent_id(event).unwrap_or_default(); |
| 724 | } | 727 | } |
| 725 | Ok(res) | 728 | Ok(res) |