Skip to content

Commit

Permalink
Adds date and changes to stashes in views
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Dec 12, 2018
1 parent 1ae014e commit c8a64ef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
- Only provided if the current branch is tracking a remote branch and is ahead of it
- Adds control over the contributed menu commands to the Source Control side bar to the GitLens interactive settings editor (via the `gitlens.menus` setting)
- Adds Git extended regex support to commit searches
- 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)

### Changed

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ The repositories view provides the following features,
- **Stashes** — lists the stashed changes in the repository

- An inline toolbar provides quick access to the _Apply Stash Changes_, and _Stash Changes_ commands
- Provides the name of each stashed changes
- Provides the name of each stashed changes, the date, and an indicator (+x ~x -x) of the changes
- 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
- A context menu provides access to more common stashed changes commands
- Each stashed changes expands to list the set of stashed files, complete with status indicators for adds, changes, renames, and deletes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@
},
"gitlens.views.stashFormat": {
"type": "string",
"default": "${message}",
"default": "${message} • ${agoOrDate}${ • changes}",
"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#`",
"scope": "window"
},
Expand Down

0 comments on commit c8a64ef

Please sign in to comment.