Skip to content

Commit cb77764

Browse files
committed
Update comments
1 parent 1f940fc commit cb77764

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/components/BranchMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export class BranchMenu extends React.Component<
195195
// When the HEAD changes, decent probability that we've switched branches:
196196
this.props.model.headChanged.connect(this._syncState, this);
197197

198-
// When the status changes, we may have checked out a new branch (e.g., via the command-line and not via the extension):
198+
// When the status changes, we may have checked out a new branch (e.g., via the command-line and not via the extension) or changed repositories:
199199
this.props.model.statusChanged.connect(this._syncState, this);
200200
}
201201

src/components/NewBranchDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export class NewBranchDialog extends React.Component<
290290
// When the HEAD changes, decent probability that we've switched branches:
291291
this.props.model.headChanged.connect(this._syncState, this);
292292

293-
// When the status changes, we may have checked out a new branch (e.g., via the command-line and not via the extension):
293+
// When the status changes, we may have checked out a new branch (e.g., via the command-line and not via the extension) or changed repositories:
294294
this.props.model.statusChanged.connect(this._syncState, this);
295295
}
296296

src/components/Toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ export class Toolbar extends React.Component<IToolbarProps, IToolbarState> {
289289
// When the HEAD changes, decent probability that we've switched branches:
290290
this.props.model.headChanged.connect(this._syncState, this);
291291

292-
// When the status changes, we may have checked out a new branch (e.g., via the command-line and not via the extension):
292+
// When the status changes, we may have checked out a new branch (e.g., via the command-line and not via the extension) or changed repositories:
293293
this.props.model.statusChanged.connect(this._syncState, this);
294294
}
295295

0 commit comments

Comments
 (0)