Skip to documentation
SLOP

tiny.sql.HistoryBranchUpstreamConfigEntry

Reference tiny.sql HistoryBranchUpstreamConfigEntry

Defined in sync.

API (5)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callssyncBranchUpstreamEntry
Static calls · unresolved targets: unknown · external targets: unknown.

Source

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

zig
pub const BranchUpstreamEntry = struct {    branch: []u8,    remote: []u8,    remote_branch: []u8,    pub fn init(allocator: Allocator, branch_name: []const u8, remote_name: []const u8, remote_branch_name: []const u8) Error!BranchUpstreamEntry {        if (branch_name.len == 0 or remote_branch_name.len == 0) return error.InvalidBranchUpstreamConfig;        if (!validRemoteName(remote_name)) return error.InvalidRemoteName;        const owned_branch = try allocator.dupe(u8, branch_name);        errdefer allocator.free(owned_branch);        const owned_remote = try allocator.dupe(u8, remote_name);        errdefer allocator.free(owned_remote);        const owned_remote_branch = try allocator.dupe(u8, remote_branch_name);        errdefer allocator.free(owned_remote_branch);        return .{            .branch = owned_branch,            .remote = owned_remote,            .remote_branch = owned_remote_branch,        };    }    pub fn deinit(self: *BranchUpstreamEntry, allocator: Allocator) void {        allocator.free(self.branch);        allocator.free(self.remote);        allocator.free(self.remote_branch);        self.* = undefined;    }};

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

zig
pub const HistoryBranchUpstreamConfigEntry = sync.BranchUpstreamEntry;
Called byCallsNo direct callstest sourcelib.sql.src.synctest: sync branch upstream config sto...HistoryBranchUpstreamConfigEntrydeinit
Static calls · unresolved targets: 0 · external targets: 1.
Called byCallssync.BranchUpstreamConfiginitsyncdecodeBranchUpstreamConfigtest sourcelib.sql.src.synctest: sync branch upstream config sto...private sourcelib.sql.src.syncvalidRemoteNameHistoryBranchUpstreamConfigEntryinit
Static calls · unresolved targets: 0 · external targets: 2.

Audit

Definitions3
Public names6
Members3
Version26.7.0
Revisiondaab053ee433