git-stash last-minute fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | Fix git-stash apply --indexgit-stash.sh | +17 | 0 replies | |
| 2/2 | git-stash apply --index: optimize postprocessinggit-stash.sh | +7 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] git-stash last-minute fixes
Here are a small patch series to git-stash.
[1/2] Fix git-stash apply --index
This fixes two rather embarrasing bugs in "apply --index".
[2/2] git-stash apply --index: optimize postprocessing
This builds on top of the previous one to avoid unnecessary index manipulations that is later wiped by a read-tree.
There also is a bugfix I received privately from Nana for the breakage I introduced with 7ab3cc70. I've already queued it for 'master'.
-- >8 --
From: しらいしななこ <[email protected]>
Date: Sat, 28 Jul 2007 10:44:48 +0900
Subject: [PATCH] git-stash: Make sure reflog is created for refs/stash
Earlier commit 7ab3cc70 fixed "stash clear" but broke save_stash, because it forgot to make sure the reflog file exists before saving.
git-stash.sh +3 -0
@@ -36,6 +36,9 @@ save_stash () { test -f "$GIT_DIR/logs/$ref_stash" || clear_stash || die "Cannot initialize stash" + # Make sure the reflog for stash is kept. + : >>"$GIT_DIR/logs/$ref_stash" + # state of the base commit if b_commit=$(git rev-parse --verify HEAD) then