diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-07 20:24:10 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-07 20:43:01 +1100 |
commit | 09aabce3cd38312e854fdbb29046acba42a67f38 (patch) | |
tree | bb80f85919cd375f0f8829438896dde73a119725 /pkg/commands/git.go | |
parent | eb2bfd3848bc5178670380f77b675a27d94d2515 (diff) |
allow commits to be checked out
Diffstat (limited to 'pkg/commands/git.go')
-rw-r--r-- | pkg/commands/git.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/git.go b/pkg/commands/git.go index ab71f80e3..0975ba501 100644 --- a/pkg/commands/git.go +++ b/pkg/commands/git.go @@ -515,7 +515,7 @@ func (c *GitCommand) DiscardUnstagedFileChanges(file *File) error { return c.OSCommand.RunCommand("git checkout -- %s", quotedFileName) } -// Checkout checks out a branch, with --force if you set the force arg to true +// Checkout checks out a branch (or commit), with --force if you set the force arg to true func (c *GitCommand) Checkout(branch string, force bool) error { forceArg := "" if force { |