|
@ -246,7 +246,7 @@ export interface RefQuickPickItem extends QuickPickItemOfT { |
|
|
|
|
|
|
|
|
export namespace RefQuickPickItem { |
|
|
export namespace RefQuickPickItem { |
|
|
export function create( |
|
|
export function create( |
|
|
ref: string, |
|
|
|
|
|
|
|
|
ref: string | GitReference, |
|
|
repoPath: string, |
|
|
repoPath: string, |
|
|
picked?: boolean, |
|
|
picked?: boolean, |
|
|
options: { alwaysShow?: boolean; buttons?: QuickInputButton[]; ref?: boolean; icon?: boolean } = {}, |
|
|
options: { alwaysShow?: boolean; buttons?: QuickInputButton[]; ref?: boolean; icon?: boolean } = {}, |
|
@ -279,7 +279,13 @@ export namespace RefQuickPickItem { |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const gitRef = GitReference.create(ref, repoPath); |
|
|
|
|
|
|
|
|
let gitRef; |
|
|
|
|
|
if (typeof ref === 'string') { |
|
|
|
|
|
gitRef = GitReference.create(ref, repoPath); |
|
|
|
|
|
} else { |
|
|
|
|
|
gitRef = ref; |
|
|
|
|
|
ref = gitRef.ref; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (GitRevision.isRange(ref)) { |
|
|
if (GitRevision.isRange(ref)) { |
|
|
return { |
|
|
return { |
|
|