[PATCH 0/2] stash: stop checking for changes twice
- From
- Phillip Wood <phillip.wood123@gmail.com>
- Date
- Oct 5, 2026, 16:35 UTC
- Message-ID
- <cover.1791218125.git.phillip.wood@dunelm.org.uk>
"git stash push" and "git stash create" check if there are any unstaged or uncommitted changes at startup, and then again when they try to create the stash. This short series removes that duplication of effort which I spotted while looking at <20260929074222.11942-1-kazumasa.shigeta@kanamei.com>.
base-commit: c46c1e37724f0478939de636ab8ea5a89086d532 Published-As: https://github.com/phillipwood/git/releases/tag/pw%2Fstash-optimize-check_changes-calls%2Fv1 View-Changes-At: https://github.com/phillipwood/git/compare/c46c1e377...95b7d582a Fetch-It-Via: git fetch https://github.com/phillipwood/git pw/stash-optimize-check_changes-calls/v1
Phillip Wood (2): stash create: remove duplicate changes detection stash push: remove duplicate changes detection
builtin/stash.c | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-)
-- 2.56.0.134.g299a3c16181