@@ -66,6 +66,7 @@ export class GitCommit implements GitRevisionReference {
66
66
readonly stashNumber : string | undefined ;
67
67
readonly stashOnRef : string | undefined ;
68
68
readonly tips : string [ ] | undefined ;
69
+ readonly parentTimestamps ?: GitStashParentInfo [ ] | undefined ;
69
70
70
71
constructor (
71
72
private readonly container : Container ,
@@ -82,10 +83,12 @@ export class GitCommit implements GitRevisionReference {
82
83
tips ?: string [ ] ,
83
84
stashName ?: string | undefined ,
84
85
stashOnRef ?: string | undefined ,
86
+ parentTimestamps ?: GitStashParentInfo [ ] | undefined ,
85
87
) {
86
88
this . ref = sha ;
87
89
this . shortSha = sha . substring ( 0 , this . container . CommitShaFormatting . length ) ;
88
90
this . tips = tips ;
91
+ this . parentTimestamps = parentTimestamps ;
89
92
90
93
if ( stashName ) {
91
94
this . refType = 'stash' ;
@@ -689,6 +692,7 @@ export class GitCommit implements GitRevisionReference {
689
692
fileset ?: GitCommitFileset | null ;
690
693
lines ?: GitCommitLine [ ] | null ;
691
694
stats ?: GitCommitStats | null ;
695
+ parentTimestamps ?: GitStashParentInfo [ ] | null ;
692
696
} ) : T {
693
697
return new GitCommit (
694
698
this . container ,
@@ -705,6 +709,7 @@ export class GitCommit implements GitRevisionReference {
705
709
this . tips ,
706
710
this . stashName ,
707
711
this . stashOnRef ,
712
+ this . getChangedValue ( changes . parentTimestamps , this . parentTimestamps ) ,
708
713
) as T ;
709
714
}
710
715
@@ -763,10 +768,17 @@ export interface GitCommitStats<Files extends number | GitDiffFileStats = number
763
768
readonly deletions : number ;
764
769
}
765
770
771
+ export interface GitStashParentInfo {
772
+ readonly sha : string ;
773
+ readonly authorDate ?: number ;
774
+ readonly committerDate ?: number ;
775
+ }
776
+
766
777
export interface GitStashCommit extends GitCommit {
767
778
readonly refType : GitStashReference [ 'refType' ] ;
768
779
readonly stashName : string ;
769
780
readonly stashNumber : string ;
781
+ readonly parentTimestamps ?: GitStashParentInfo [ ] ;
770
782
}
771
783
772
784
export type GitCommitWithFullDetails = GitCommit & SomeNonNullable < GitCommit , 'message' | 'fileset' > ;
0 commit comments