Skip to content

Commit b44234c

Browse files
committed
fix: stash summary wasn't showing correctly
1 parent fc08472 commit b44234c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Git/StashGit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ export default class StashGit extends Git {
5151
const params = [
5252
'stash',
5353
'list',
54-
'--format="%ci %h %s"',
54+
'--format="%ci %h %gs"',
5555
]
5656

5757
const stashList = (await this.exec(params, cwd)).trim()
5858

5959
const sep1 = 26 // date length
60-
const sep2 = 34 // date length + (1) space + (7) hash length
60+
const sep2 = 32 // date length + (1) space + (7) hash length
6161

6262
const list: Stash[] = !stashList.length ? [] : stashList
6363
.split(/\r?\n/g)

src/StashLabels.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default class {
112112
private parseStashLabel(stashNode: StashNode, template: string): string {
113113
return template
114114
.replace('${index}', stashNode.index.toString())
115-
.replace('${branch}', this.getStashBranch(stashNode))
115+
.replace('${branch}', '')
116116
.replace('${description}', this.getStashDescription(stashNode))
117117
.replace('${dateTimeLong}', DateFormat.toFullyReadable(new Date(Date.parse(stashNode.date))))
118118
.replace('${dateTimeSmall}', DateFormat.toDateTimeSmall(new Date(Date.parse(stashNode.date))))

0 commit comments

Comments
 (0)