Skip to content

Add "--quiet" flag to internal backend and test Git commands - #6292

Open
LouisDeconinck wants to merge 2 commits into
git-town:mainfrom
LouisDeconinck:feat/quiet-backend-6283
Open

LouisDeconinck wants to merge 2 commits into
git-town:mainfrom
LouisDeconinck:feat/quiet-backend-6283

Conversation

@LouisDeconinck

Copy link
Copy Markdown
Contributor

Description

Adds --quiet to the git checkout and git commit commands that Git Town and its test suite run, suppressing noisy output and improving performance.

Implementation

  • internal/git/commands.go: CheckoutBranchUncached, Commit, CommitStart, CreateAndCheckoutBranch, CreateAndCheckoutBranchWithParent, and ResolveConflict now pass --quiet.
  • Test-side Git calls in internal/test/commands, internal/test/cucumber, internal/test/fixture, and internal/test/testruntime pass --quiet as well.
  • Expected command tables in the feature files were updated to match the new command output. Commands typed by the user inside scenarios (e.g. When I run "git commit --no-edit") are unchanged.

Fixes #6283

- walk: the command given to "git town walk" runs verbatim,
  so it does not contain the --quiet flag
- delete/lang/es: the Spanish translation of the "set up to track"
  message differs between Git versions

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

add "--quiet" flag to internal backend and test Git commands

1 participant