Merge branch 'nd/checkout-m'
authorJunio C Hamano <gitster@pobox.com>
Thu, 25 Apr 2019 07:41:14 +0000 (16:41 +0900)
committerJunio C Hamano <gitster@pobox.com>
Thu, 25 Apr 2019 07:41:14 +0000 (16:41 +0900)
commit4a3ed2bec6031545aea38db10e443a979951346f
treedbb5ba4597bdd046ac9ed9dc0e57a7de9250a636
parentb72e90712eb0e802b232ad4c88460d04279c7111
parent6eff409e8a760645ae5357d1e95e7e7ff3c04456
Merge branch 'nd/checkout-m'

"git checkout -m <other>" was about carrying the differences
between HEAD and the working-tree files forward while checking out
another branch, and ignored the differences between HEAD and the
index.  The command has been taught to abort when the index and the
HEAD are different.

* nd/checkout-m:
  checkout: prevent losing staged changes with --merge
  read-tree: add --quiet
  unpack-trees: rename "gently" flag to "quiet"
  unpack-trees: keep gently check inside add_rejected_path
Documentation/git-read-tree.txt
builtin/checkout.c
unpack-trees.c