mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #617] [MERGED] Add --staged parameter to pretty-quick pre-commit #2746
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2746
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/617
Author: @dihmeetree
Created: 2/27/2020
Status: ✅ Merged
Merged: 2/27/2020
Merged by: @dihmeetree
Base:
master← Head:fix/pretty-quick-stage📝 Commits (3)
21e8277Merge remote-tracking branch 'liyasthomas/master'05d1535Merge branch 'master' into liyasthomas/mastere1c34a3Add --staged parameter to pretty-quick📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
package.json(+1 -1)📄 Description
This adds a
--stagedparameter to thepretty-quickpre-commit script, which will make sure only staged files are formatted. Partially staged files will not be re-staged after formatting, and pretty-quick will exit with a non-zero exit code. The intent is to abort the git commit, and allow the user to amend their selective staging to include formatting fixes.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.