[PR #617] [MERGED] Add --staged parameter to pretty-quick pre-commit #2746

Closed
opened 2026-03-17 00:25:30 +03:00 by kerem · 0 comments
Owner

📋 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: masterHead: fix/pretty-quick-stage


📝 Commits (3)

  • 21e8277 Merge remote-tracking branch 'liyasthomas/master'
  • 05d1535 Merge branch 'master' into liyasthomas/master
  • e1c34a3 Add --staged parameter to pretty-quick

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 package.json (+1 -1)

📄 Description

This adds a --staged parameter to the pretty-quick pre-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.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/617 **Author:** [@dihmeetree](https://github.com/dihmeetree) **Created:** 2/27/2020 **Status:** ✅ Merged **Merged:** 2/27/2020 **Merged by:** [@dihmeetree](https://github.com/dihmeetree) **Base:** `master` ← **Head:** `fix/pretty-quick-stage` --- ### 📝 Commits (3) - [`21e8277`](https://github.com/hoppscotch/hoppscotch/commit/21e8277dd971388da7924127872e6e0425818f0d) Merge remote-tracking branch 'liyasthomas/master' - [`05d1535`](https://github.com/hoppscotch/hoppscotch/commit/05d153582346632b2e79d127bfa2369beeedb013) Merge branch 'master' into liyasthomas/master - [`e1c34a3`](https://github.com/hoppscotch/hoppscotch/commit/e1c34a3689da74db0bfcf0526240d1b1b32fdd6a) Add --staged parameter to pretty-quick ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -1) </details> ### 📄 Description This adds a `--staged` parameter to the `pretty-quick` pre-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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 00:25:30 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#2746
No description provided.