Browse Source

git-resolve-script: don't wait for three seconds any more

We used to overwrite peoples dirty state.  We don't any more.  So don't
print the scary message and don't delay, just do the update already.
maint
Linus Torvalds 20 years ago
parent
commit
3f4eff7530
  1. 3
      git-resolve-script

3
git-resolve-script

@ -36,9 +36,6 @@ if [ "$common" == "$merge" ]; then
fi fi
if [ "$common" == "$head" ]; then if [ "$common" == "$head" ]; then
echo "Updating from $head to $merge." echo "Updating from $head to $merge."
echo "Destroying all noncommitted data!"
echo "Kill me within 3 seconds.."
sleep 3
git-read-tree -u -m $head $merge || exit 1 git-read-tree -u -m $head $merge || exit 1
echo $merge > "$GIT_DIR"/HEAD echo $merge > "$GIT_DIR"/HEAD
git-diff-tree -p ORIG_HEAD HEAD | git-apply --stat git-diff-tree -p ORIG_HEAD HEAD | git-apply --stat

Loading…
Cancel
Save