summaryrefslogtreecommitdiff
path: root/tree-walk.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2011-09-01 17:53:07 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-09-15 16:58:55 -0700
commit5347a50fec066845e5dfa34a53cbec1ea347641d (patch)
tree4334cbdc61d31f5b8aa105c90fafeb090121be5e /tree-walk.c
parentGit 1.7.6.3 (diff)
downloadtgif-5347a50fec066845e5dfa34a53cbec1ea347641d.tar.xz
filter-branch: use require_clean_work_tree
Filter-branch already requires that we have a clean work tree before starting. However, it failed to refresh the index before checking, which means it could be wrong in the case of stat-dirtiness. Instead of simply adding a call to refresh the index, let's switch to using the require_clean_work_tree function provided by git-sh-setup. It does exactly what we want, and with fewer lines of code and more specific output messages. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'tree-walk.c')
0 files changed, 0 insertions, 0 deletions