Skip to content

Commit c8a64ef

Browse files
committed
Adds date and changes to stashes in views
1 parent 1ae014e commit c8a64ef

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
1515
- Only provided if the current branch is tracking a remote branch and is ahead of it
1616
- Adds control over the contributed menu commands to the Source Control side bar to the GitLens interactive settings editor (via the `gitlens.menus` setting)
1717
- Adds Git extended regex support to commit searches
18+
- Adds the date and a changes indicator (+x ~x -x) to stashes in GitLens views (uses the new `${changes}` token in the `gitlens.views.stashFormat` setting)
1819

1920
### Changed
2021

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ The repositories view provides the following features,
350350
- **Stashes** — lists the stashed changes in the repository
351351

352352
- An inline toolbar provides quick access to the _Apply Stash Changes_, and _Stash Changes_ commands
353-
- Provides the name of each stashed changes
353+
- Provides the name of each stashed changes, the date, and an indicator (+x ~x -x) of the changes
354354
- An inline toolbar provides quick access to the _Compare with HEAD_ (`alt-click` for _Compare with Working Tree_), _Apply Stashed Changes_, and _Delete Stashed Changes_ commands
355355
- A context menu provides access to more common stashed changes commands
356356
- Each stashed changes expands to list the set of stashed files, complete with status indicators for adds, changes, renames, and deletes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@
14751475
},
14761476
"gitlens.views.stashFormat": {
14771477
"type": "string",
1478-
"default": "${message}",
1478+
"default": "${message} • ${agoOrDate}${ • changes}",
14791479
"markdownDescription": "Specifies the format of stashed changes in the views. See the [GitLens docs](https://github.com/eamodio/vscode-gitlens/wiki/Advanced-Formatting) for advanced formatting\n- Available tokens\n - `${id}` — commit id\n - `${author}` — commit author\n - `${message}` — commit message\n - `${ago}` — relative commit date (e.g. 1 day ago)\n - `${date}` — formatted commit date (format specified by `#gitlens.statusBar.dateFormat#`)\n - `${agoOrDate}` — commit date specified by `#gitlens.defaultDateStyle#`\n - `${authorAgo}` — commit author, relative commit date\n - `${authorAgoOrDate}` — commit author, commit date specified by `#gitlens.defaultDateStyle#`",
14801480
"scope": "window"
14811481
},

0 commit comments

Comments
 (0)