Skip to content

Commit 13b6758

Browse files
committed
Closes #4725 adds file/folder history in Graph
- Opens file/folder history as filtered searches - Adds _Open File History in Commit Graph_ command to files in views - Adds _Open Folder History in Commit Graph_ command to folders in the Explorer view
1 parent f290df4 commit 13b6758

File tree

19 files changed

+529
-80
lines changed

19 files changed

+529
-80
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1212
- Adds support for reference or range commit searches on the _Commit Graph_, _Search & Compare_ view, and in the _Search Commits_ command ([#4723](https://github.com/gitkraken/vscode-gitlens/issues/4723))
1313
- Adds natural language support to allow for more powerful queries
1414
- Adds a navigable search history to the search box on the _Commit Graph_ ([#4724](https://github.com/gitkraken/vscode-gitlens/issues/4724))
15+
- Adds ability to show file or folder histories on the _Commit Graph_ ([#4725](https://github.com/gitkraken/vscode-gitlens/issues/4725))
16+
- Adds _Open File History in Commit Graph_ command to files in views
17+
- Adds _Open Folder History in Commit Graph_ command to folders in the Explorer view
1518

1619
### Changed
1720

contributions.json

Lines changed: 116 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3742,6 +3742,86 @@
37423742
]
37433743
}
37443744
},
3745+
"gitlens.openFileHistoryInGraph": {
3746+
"label": "Open File History in Commit Graph",
3747+
"icon": "$(gitlens-graph)",
3748+
"commandPalette": "resource in gitlens:tabs:tracked"
3749+
},
3750+
"gitlens.openFileHistoryInGraph:commitDetails": {
3751+
"label": "Open File History in Commit Graph",
3752+
"icon": "$(gitlens-graph)",
3753+
"menus": {
3754+
"gitlens/commit/file/history": [
3755+
{
3756+
"when": "webviewItem =~ /gitlens:file\\b/ && webview == gitlens.views.commitDetails",
3757+
"group": "1_gitlens",
3758+
"order": 2
3759+
}
3760+
]
3761+
}
3762+
},
3763+
"gitlens.openFileHistoryInGraph:editor": {
3764+
"label": "Open File History in Commit Graph",
3765+
"icon": "$(gitlens-graph)",
3766+
"menus": {
3767+
"gitlens/editor/history": [
3768+
{
3769+
"group": "1_gitlens",
3770+
"order": 2
3771+
}
3772+
]
3773+
}
3774+
},
3775+
"gitlens.openFileHistoryInGraph:explorer": {
3776+
"label": "Open File History in Commit Graph",
3777+
"icon": "$(gitlens-graph)",
3778+
"menus": {
3779+
"gitlens/explorer/file/history": [
3780+
{
3781+
"group": "1_gitlens",
3782+
"order": 2
3783+
}
3784+
]
3785+
}
3786+
},
3787+
"gitlens.openFileHistoryInGraph:graphDetails": {
3788+
"label": "Open File History in Commit Graph",
3789+
"icon": "$(gitlens-graph)",
3790+
"menus": {
3791+
"gitlens/commit/file/history": [
3792+
{
3793+
"when": "webviewItem =~ /gitlens:file\\b/ && webview == gitlens.views.graphDetails",
3794+
"group": "1_gitlens",
3795+
"order": 2
3796+
}
3797+
]
3798+
}
3799+
},
3800+
"gitlens.openFileHistoryInGraph:scm": {
3801+
"label": "Open File History in Commit Graph",
3802+
"icon": "$(gitlens-graph)",
3803+
"menus": {
3804+
"gitlens/scm/resourceState/history": [
3805+
{
3806+
"group": "1_gitlens",
3807+
"order": 2
3808+
}
3809+
]
3810+
}
3811+
},
3812+
"gitlens.openFileHistoryInGraph:views": {
3813+
"label": "Open File History in Commit Graph",
3814+
"icon": "$(gitlens-graph)",
3815+
"menus": {
3816+
"gitlens/commit/file/history": [
3817+
{
3818+
"when": "viewItem =~ /gitlens:file\\b/",
3819+
"group": "1_gitlens",
3820+
"order": 2
3821+
}
3822+
]
3823+
}
3824+
},
37453825
"gitlens.openFileOnRemote": {
37463826
"label": "Open File on Remote",
37473827
"icon": "$(globe)",
@@ -3899,6 +3979,34 @@
38993979
]
39003980
}
39013981
},
3982+
"gitlens.openFolderHistoryInGraph": {
3983+
"label": "Open Folder History in Commit Graph",
3984+
"icon": "$(gitlens-graph)"
3985+
},
3986+
"gitlens.openFolderHistoryInGraph:explorer": {
3987+
"label": "Open Folder History in Commit Graph",
3988+
"icon": "$(gitlens-graph)",
3989+
"menus": {
3990+
"gitlens/explorer/folder/history": [
3991+
{
3992+
"group": "1_gitlens",
3993+
"order": 2
3994+
}
3995+
]
3996+
}
3997+
},
3998+
"gitlens.openFolderHistoryInGraph:scm": {
3999+
"label": "Open Folder History in Commit Graph",
4000+
"icon": "$(gitlens-graph)",
4001+
"menus": {
4002+
"gitlens/scm/resourceFolder/history": [
4003+
{
4004+
"group": "1_gitlens",
4005+
"order": 2
4006+
}
4007+
]
4008+
}
4009+
},
39024010
"gitlens.openOnlyChangedFiles": {
39034011
"label": "Open Changed & Close Unchanged Files",
39044012
"commandPalette": "gitlens:enabled",
@@ -17034,7 +17142,7 @@
1703417142
{
1703517143
"when": "webviewItem =~ /gitlens:file\\b/ && webview == gitlens.views.commitDetails",
1703617144
"group": "1_gitlens",
17037-
"order": 2
17145+
"order": 5
1703817146
}
1703917147
]
1704017148
}
@@ -17046,7 +17154,7 @@
1704617154
"gitlens/editor/history": [
1704717155
{
1704817156
"group": "1_gitlens",
17049-
"order": 2
17157+
"order": 5
1705017158
}
1705117159
]
1705217160
}
@@ -17058,7 +17166,7 @@
1705817166
"gitlens/explorer/file/history": [
1705917167
{
1706017168
"group": "1_gitlens",
17061-
"order": 2
17169+
"order": 5
1706217170
}
1706317171
]
1706417172
}
@@ -17071,7 +17179,7 @@
1707117179
{
1707217180
"when": "webviewItem =~ /gitlens:file\\b/ && webview == gitlens.views.graphDetails",
1707317181
"group": "1_gitlens",
17074-
"order": 2
17182+
"order": 5
1707517183
}
1707617184
]
1707717185
}
@@ -17083,7 +17191,7 @@
1708317191
"gitlens/scm/resourceState/history": [
1708417192
{
1708517193
"group": "1_gitlens",
17086-
"order": 2
17194+
"order": 5
1708717195
}
1708817196
]
1708917197
}
@@ -17096,7 +17204,7 @@
1709617204
{
1709717205
"when": "viewItem =~ /gitlens:file\\b/",
1709817206
"group": "1_gitlens",
17099-
"order": 2
17207+
"order": 5
1710017208
}
1710117209
]
1710217210
}
@@ -17108,7 +17216,7 @@
1710817216
"gitlens/explorer/folder/history": [
1710917217
{
1711017218
"group": "1_gitlens",
17111-
"order": 2
17219+
"order": 5
1711217220
}
1711317221
]
1711417222
}
@@ -17120,7 +17228,7 @@
1712017228
"gitlens/scm/resourceFolder/history": [
1712117229
{
1712217230
"group": "1_gitlens",
17123-
"order": 2
17231+
"order": 5
1712417232
}
1712517233
]
1712617234
}

0 commit comments

Comments
 (0)