diff options
| author | Jeff King <peff@peff.net> | 2008-03-03 01:30:56 -0500 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2008-03-02 23:33:59 -0800 |
| commit | 0f2d4476c12c15106be20d53c507035e157b66f1 (patch) | |
| tree | 20fee0bda6fd94e226bd76e4af707ddd1920935b /contrib/vim/syntax/gitcommit.vim | |
| parent | tests: introduce test_must_fail (diff) | |
| download | git-0f2d4476c12c15106be20d53c507035e157b66f1.tar.gz git-0f2d4476c12c15106be20d53c507035e157b66f1.zip | |
revert: actually check for a dirty index
The previous code mistakenly used wt_status_prepare to check whether the
index had anything commitable in it; however, that function is just an
init function, and will never report a dirty index.
The correct way with wt_status_* would be to call wt_status_print with the
output pointing to /dev/null or similar. However, that does extra work by
both examining the working tree and spewing status information to nowhere.
Instead, let's just implement the useful subset of wt_status_print as an
"is_index_dirty" function.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/vim/syntax/gitcommit.vim')
0 files changed, 0 insertions, 0 deletions
