Skip to documentation
SLOP

tiny.sql.readHistoryBranchUpstreamConfig

Reference tiny.sql readHistoryBranchUpstreamConfig

Defined in sync.

Called byCallstest sourcelib.sql.src.synctest: sync branch upstream config sto...syncdecodeBranchUpstreamConfigsyncreadBranchUpstreamConfig
Static calls · unresolved targets: 0 · external targets: 2.

Source

Source: lib/sql/src/sync.zig:626

zig
pub fn readBranchUpstreamConfig(allocator: Allocator, dir: std.Io.Dir, options: BranchUpstreamOptions) Error!BranchUpstreamConfig {    const bytes = dir.readFileAlloc(options.io, options.path, allocator, .limited(options.max_bytes)) catch |err| switch (err) {        error.FileNotFound => {            return .{                .allocator = allocator,                .upstreams = &.{},            };        },        else => return err,    };    defer allocator.free(bytes);    return try decodeBranchUpstreamConfig(allocator, bytes);}

Source: lib/sql/src/root.zig:122

zig
pub const readHistoryBranchUpstreamConfig = sync.readBranchUpstreamConfig;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433