Skip to content

Commit 9cd22d0

Browse files
author
Eric Amodio
committed
Updates list of readonly git commands
1 parent 699fd57 commit 9cd22d0

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

extensions/git/src/repository.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,11 +309,17 @@ export const enum Operation {
309309

310310
function isReadOnly(operation: Operation): boolean {
311311
switch (operation) {
312-
case Operation.Show:
313-
case Operation.GetCommitTemplate:
312+
case Operation.Blame:
314313
case Operation.CheckIgnore:
314+
case Operation.Diff:
315+
case Operation.FindTrackingBranches:
316+
case Operation.GetBranch:
317+
case Operation.GetCommitTemplate:
315318
case Operation.GetObjectDetails:
319+
case Operation.Log:
320+
case Operation.LogFile:
316321
case Operation.MergeBase:
322+
case Operation.Show:
317323
return true;
318324
default:
319325
return false;

0 commit comments

Comments
 (0)