tiny.sql.HistoryBranchUpstreamConfigEntry
Defined in sync.
API (5)
Actions
Public operations.
Fields and members
Public fields and members.
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;Audit
| Definitions | 3 |
|---|---|
| Public names | 6 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |