Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 919c9fd

Browse files
committed
Invalidate FilePatches when checking out a revision
1 parent aef5763 commit 919c9fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/models/repository-states/present.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ export default class Present extends State {
230230
Keys.index.all,
231231
Keys.aheadCount.all,
232232
Keys.behindCount.all,
233+
...Keys.filePatch.eachWithOpts({staged: true, amending: true}),
233234
])
234235
checkout(revision, options = {}) {
235236
return this.git().checkout(revision, options);

0 commit comments

Comments
 (0)