@@ -17,9 +17,6 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
17
17
private readonly _onDidChangeCurrentHistoryItemGroup = new EventEmitter < void > ( ) ;
18
18
readonly onDidChangeCurrentHistoryItemGroup : Event < void > = this . _onDidChangeCurrentHistoryItemGroup . event ;
19
19
20
- private readonly _onDidChangeCurrentHistoryItemGroupBase = new EventEmitter < void > ( ) ;
21
- readonly onDidChangeCurrentHistoryItemGroupBase : Event < void > = this . _onDidChangeCurrentHistoryItemGroupBase . event ;
22
-
23
20
private readonly _onDidChangeDecorations = new EventEmitter < Uri [ ] > ( ) ;
24
21
readonly onDidChangeFileDecorations : Event < Uri [ ] > = this . _onDidChangeDecorations . event ;
25
22
@@ -29,8 +26,6 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
29
26
set currentHistoryItemGroup ( value : SourceControlHistoryItemGroup | undefined ) {
30
27
this . _currentHistoryItemGroup = value ;
31
28
this . _onDidChangeCurrentHistoryItemGroup . fire ( ) ;
32
-
33
- this . logger . trace ( 'GitHistoryProvider:onDidRunGitStatus - currentHistoryItemGroup:' , JSON . stringify ( value ) ) ;
34
29
}
35
30
36
31
private historyItemDecorations = new Map < string , FileDecoration > ( ) ;
@@ -59,12 +54,13 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
59
54
return ;
60
55
}
61
56
57
+ this . _HEAD = this . repository . HEAD ;
58
+
62
59
// Check if HEAD does not support incoming/outgoing (detached commit, tag)
63
60
if ( ! this . repository . HEAD ?. name || ! this . repository . HEAD ?. commit || this . repository . HEAD . type === RefType . Tag ) {
64
61
this . logger . trace ( 'GitHistoryProvider:onDidRunGitStatus - HEAD does not support incoming/outgoing' ) ;
65
62
66
63
this . currentHistoryItemGroup = undefined ;
67
- this . _HEAD = this . repository . HEAD ;
68
64
return ;
69
65
}
70
66
@@ -78,16 +74,7 @@ export class GitHistoryProvider implements SourceControlHistoryProvider, FileDec
78
74
} : undefined
79
75
} ;
80
76
81
- // Check if Upstream has changed
82
- if ( force ||
83
- this . _HEAD ?. upstream ?. name !== this . repository . HEAD ?. upstream ?. name ||
84
- this . _HEAD ?. upstream ?. remote !== this . repository . HEAD ?. upstream ?. remote ||
85
- this . _HEAD ?. upstream ?. commit !== this . repository . HEAD ?. upstream ?. commit ) {
86
- this . logger . trace ( `GitHistoryProvider:onDidRunGitStatus - Upstream has changed (${ force } )` ) ;
87
- this . _onDidChangeCurrentHistoryItemGroupBase . fire ( ) ;
88
- }
89
-
90
- this . _HEAD = this . repository . HEAD ;
77
+ this . logger . trace ( `GitHistoryProvider:onDidRunGitStatus - currentHistoryItemGroup (${ force } ): ${ JSON . stringify ( this . currentHistoryItemGroup ) } ` ) ;
91
78
}
92
79
93
80
async provideHistoryItems ( historyItemGroupId : string , options : SourceControlHistoryOptions ) : Promise < SourceControlHistoryItem [ ] > {
0 commit comments