Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Make 'git checkout' a bit more forgiving when switching branches.
[gitweb.git]
/
git-checkout.sh
diff --git
a/git-checkout.sh
b/git-checkout.sh
index 4e7c57a5f39894c85a6b1f8f2e1eee444808c57f..4a605cd9c6d76dc99ab0574dc3571db3b64e509c 100755
(executable)
--- a/
git-checkout.sh
+++ b/
git-checkout.sh
@@
-55,6
+55,7
@@
then
git-read-tree --reset $new &&
git-checkout-index -q -f -u -a
else
+ git-update-index --refresh >/dev/null
git-read-tree -m -u $old $new
fi