]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.h
wt-status: make the require_clean_work_tree() function reusable
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 7 Oct 2016 16:08:38 +0000 (18:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Oct 2016 16:29:31 +0000 (09:29 -0700)
commitfd84986f467b2556e0675d1df00f83b3a323cf2e
tree6da7b9e2cf37ab24f517c62bd13c228cdb5266ef
parentea63b393ec76484690733d6f589c9e67fedbaa78
wt-status: make the require_clean_work_tree() function reusable

The function used by "git pull" to stop the user when the working
tree has changes is useful in other places.

Let's move it into a more prominent (and into an actually reusable)
spot: wt-status.[ch].

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/pull.c
wt-status.c
wt-status.h