Merge branch 'js/libify-require-clean-work-tree'
commit2bee56be7e241db75774fc6a7a235b8125936943
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2016 20:14:44 +0000 (26 13:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Oct 2016 20:14:44 +0000 (26 13:14 -0700)
tree091eaf666d5e2cb8c363af949ca7c5389c823f1f
parente5272d304af3528163cd5faa822f88086448ae57
parent4777e175de439b7ea0c435de4bb0de9ab1663c38
Merge branch 'js/libify-require-clean-work-tree'

The require_clean_work_tree() helper was recreated in C when "git
pull" was rewritten from shell; the helper is now made available to
other callers in preparation for upcoming "rebase -i" work.

* js/libify-require-clean-work-tree:
  wt-status: begin error messages with lower-case
  wt-status: teach has_{unstaged,uncommitted}_changes() about submodules
  wt-status: export also the has_un{staged,committed}_changes() functions
  wt-status: make the require_clean_work_tree() function reusable
  pull: make code more similar to the shell script again
  pull: drop confusing prefix parameter of die_on_unclean_work_tree()
wt-status.c