diff options
Diffstat (limited to 'core/Output.zig')
| -rw-r--r-- | core/Output.zig | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Output.zig b/core/Output.zig index c7bfde14..09ec2a51 100644 --- a/core/Output.zig +++ b/core/Output.zig @@ -38,6 +38,8 @@ pub const Origin = union(enum) { /// A query pane's +Preview (Query.zig): a file's text shown, not yet /// its pane; Enter promotes it to one where it stands. preview, + /// A file at a revision (jj.zig), its arg the revision. + revision, }; /// An output's argument is typed in the bounded one-line tag storage. @@ -163,6 +165,7 @@ pub fn traits(o: Origin) Traits { .kind => .{ .name = "", .steps = true, .locations = true }, .unsaved => .{ .name = config.unsaved_buffer, .doc = true }, .preview => .{ .name = config.preview_buffer, .doc = true }, + .revision => .{ .name = "", .doc = true }, // Named for its directory, not a `+` name in it. .dir => .{ .name = "", .doc = true }, .cmd => |b| builtins.registry.outputTraits(b) orelse unreachable, @@ -264,7 +267,7 @@ fn sortResults(arena: std.mem.Allocator, from: Origin, content: []u8, anchor: ?u => {}, else => return anchor, }, - .errors, .kind, .unsaved, .dir, .preview => return anchor, + .errors, .kind, .unsaved, .dir, .preview, .revision => return anchor, } if (content.len == 0) return anchor; const trailing_newline = content[content.len - 1] == '\n'; |
