Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Don't create a final empty packfile in fast-import.
[gitweb.git]
/
git-reset.sh
diff --git
a/git-reset.sh
b/git-reset.sh
index 76c8a818d421c796141fae3835e1cb4726d23ef3..b9045bc762471b462c3c99a5357b4b30421ea49f 100755
(executable)
--- a/
git-reset.sh
+++ b/
git-reset.sh
@@
-6,6
+6,7
@@
USAGE='[--mixed | --soft | --hard] [<commit-ish>] [ [--] <paths>...]'
SUBDIRECTORY_OK=Yes
. git-sh-setup
set_reflog_action "reset $*"
+require_work_tree
update= reset_type=--mixed
unset rev