修复本地新创建的分支无法推送到远程

This commit is contained in:
xintaofei
2026-03-23 16:09:18 +08:00
parent c8af3e07ac
commit b010ef071d
15 changed files with 114 additions and 32 deletions

View File

@@ -38,7 +38,7 @@ import type {
FilePreviewContent,
FileEditContent,
FileSaveResult,
GitLogEntry,
GitLogResult,
SystemLanguageSettings,
SystemProxySettings,
GitCredentials,
@@ -1048,7 +1048,7 @@ export async function gitLog(
path: string,
limit?: number,
branch?: string
): Promise<GitLogEntry[]> {
): Promise<GitLogResult> {
return invoke("git_log", {
path,
limit: limit ?? null,

View File

@@ -743,6 +743,11 @@ export interface FileTreeChangedEvent {
refresh_git_status: boolean
}
export interface GitLogResult {
entries: GitLogEntry[]
has_upstream: boolean
}
export interface GitLogEntry {
hash: string
full_hash: string