Skip to content

Commit

Permalink
status: fix verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie committed Nov 23, 2024
1 parent 95e0d17 commit 9002318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions pkg/command/command_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func (s *Status) Run(g *Globals) error {
}
defer r.Close()
w := r.Worktree()
w.ShowFs(g.Verbose)
shortFormat := s.Short || s.Z
status, err := w.Status(context.Background(), !shortFormat)
if err != nil {
Expand Down
3 changes: 1 addition & 2 deletions pkg/zeta/worktree_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var (
ErrGlobNoMatches = errors.New("glob pattern did not match any files")
)

func (w *Worktree) showFs(verbose bool) {
func (w *Worktree) ShowFs(verbose bool) {
if !verbose {
return
}
Expand All @@ -76,7 +76,6 @@ func (w *Worktree) showFs(verbose bool) {

// Status returns the working tree status.
func (w *Worktree) Status(ctx context.Context, verbose bool) (Status, error) {
w.showFs(verbose) //
var hash plumbing.Hash

ref, err := w.Current()
Expand Down

0 comments on commit 9002318

Please sign in to comment.