修复本地新创建的分支无法推送到远程
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user