|
@ -705,7 +705,7 @@ export class Git { |
|
|
authors?: GitUser[]; |
|
|
authors?: GitUser[]; |
|
|
limit?: number; |
|
|
limit?: number; |
|
|
merges?: boolean; |
|
|
merges?: boolean; |
|
|
ordering?: string | null; |
|
|
|
|
|
|
|
|
ordering?: 'date' | 'author-date' | 'topo' | null; |
|
|
similarityThreshold?: number | null; |
|
|
similarityThreshold?: number | null; |
|
|
since?: number | string; |
|
|
since?: number | string; |
|
|
until?: number | string; |
|
|
until?: number | string; |
|
@ -796,7 +796,7 @@ export class Git { |
|
|
filters?: GitDiffFilter[]; |
|
|
filters?: GitDiffFilter[]; |
|
|
firstParent?: boolean; |
|
|
firstParent?: boolean; |
|
|
limit?: number; |
|
|
limit?: number; |
|
|
ordering?: string | null; |
|
|
|
|
|
|
|
|
ordering?: 'date' | 'author-date' | 'topo' | null; |
|
|
renames?: boolean; |
|
|
renames?: boolean; |
|
|
reverse?: boolean; |
|
|
reverse?: boolean; |
|
|
since?: string; |
|
|
since?: string; |
|
@ -890,7 +890,7 @@ export class Git { |
|
|
repoPath: string, |
|
|
repoPath: string, |
|
|
fileName: string, |
|
|
fileName: string, |
|
|
options?: { |
|
|
options?: { |
|
|
ordering?: string | null; |
|
|
|
|
|
|
|
|
ordering?: 'date' | 'author-date' | 'topo' | null; |
|
|
ref?: string; |
|
|
ref?: string; |
|
|
similarityThreshold?: number | null; |
|
|
similarityThreshold?: number | null; |
|
|
cancellation?: CancellationToken; |
|
|
cancellation?: CancellationToken; |
|
@ -929,7 +929,7 @@ export class Git { |
|
|
repoPath: string, |
|
|
repoPath: string, |
|
|
objectId: string, |
|
|
objectId: string, |
|
|
ref: string, |
|
|
ref: string, |
|
|
ordering: string | null, |
|
|
|
|
|
|
|
|
ordering: 'date' | 'author-date' | 'topo' | null, |
|
|
file?: string, |
|
|
file?: string, |
|
|
cancellation?: CancellationToken, |
|
|
cancellation?: CancellationToken, |
|
|
) { |
|
|
) { |
|
@ -955,7 +955,7 @@ export class Git { |
|
|
return data.length === 0 ? undefined : data.trim(); |
|
|
return data.length === 0 ? undefined : data.trim(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async log__recent(repoPath: string, ordering?: string | null) { |
|
|
|
|
|
|
|
|
async log__recent(repoPath: string, ordering?: 'date' | 'author-date' | 'topo' | null) { |
|
|
const params = ['log', '-n1', '--format=%H']; |
|
|
const params = ['log', '-n1', '--format=%H']; |
|
|
|
|
|
|
|
|
if (ordering) { |
|
|
if (ordering) { |
|
@ -971,7 +971,7 @@ export class Git { |
|
|
return data.length === 0 ? undefined : data.trim(); |
|
|
return data.length === 0 ? undefined : data.trim(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
async log__recent_committerdate(repoPath: string, ordering?: string | null) { |
|
|
|
|
|
|
|
|
async log__recent_committerdate(repoPath: string, ordering?: 'date' | 'author-date' | 'topo' | null) { |
|
|
const params = ['log', '-n1', '--format=%ct']; |
|
|
const params = ['log', '-n1', '--format=%ct']; |
|
|
|
|
|
|
|
|
if (ordering) { |
|
|
if (ordering) { |
|
@ -995,7 +995,7 @@ export class Git { |
|
|
ordering, |
|
|
ordering, |
|
|
skip, |
|
|
skip, |
|
|
useShow, |
|
|
useShow, |
|
|
}: { limit?: number; ordering?: string | null; skip?: number; useShow?: boolean } = {}, |
|
|
|
|
|
|
|
|
}: { limit?: number; ordering?: 'date' | 'author-date' | 'topo' | null; skip?: number; useShow?: boolean } = {}, |
|
|
) { |
|
|
) { |
|
|
const params = [ |
|
|
const params = [ |
|
|
useShow ? 'show' : 'log', |
|
|
useShow ? 'show' : 'log', |
|
@ -1096,7 +1096,13 @@ export class Git { |
|
|
limit, |
|
|
limit, |
|
|
ordering, |
|
|
ordering, |
|
|
skip, |
|
|
skip, |
|
|
}: { all?: boolean; branch?: string; limit?: number; ordering?: string | null; skip?: number } = {}, |
|
|
|
|
|
|
|
|
}: { |
|
|
|
|
|
all?: boolean; |
|
|
|
|
|
branch?: string; |
|
|
|
|
|
limit?: number; |
|
|
|
|
|
ordering?: 'date' | 'author-date' | 'topo' | null; |
|
|
|
|
|
skip?: number; |
|
|
|
|
|
} = {}, |
|
|
): Promise<string> { |
|
|
): Promise<string> { |
|
|
const params = ['log', '--walk-reflogs', `--format=${GitReflogParser.defaultFormat}`, '--date=iso8601']; |
|
|
const params = ['log', '--walk-reflogs', `--format=${GitReflogParser.defaultFormat}`, '--date=iso8601']; |
|
|
|
|
|
|
|
@ -1188,7 +1194,7 @@ export class Git { |
|
|
|
|
|
|
|
|
async rev_parse__currentBranch( |
|
|
async rev_parse__currentBranch( |
|
|
repoPath: string, |
|
|
repoPath: string, |
|
|
ordering: string | null, |
|
|
|
|
|
|
|
|
ordering: 'date' | 'author-date' | 'topo' | null, |
|
|
): Promise<[string, string | undefined] | undefined> { |
|
|
): Promise<[string, string | undefined] | undefined> { |
|
|
try { |
|
|
try { |
|
|
const data = await this.git<string>( |
|
|
const data = await this.git<string>( |
|
|