Skip to content
Snippets Groups Projects
Commit 64da4d73 authored by Jerome Reybert's avatar Jerome Reybert
Browse files

help debug

parent 76c1fb00
No related branches found
No related tags found
No related merge requests found
export VIMAGIT_TEST_FILENAME="manage.py|manage with spaces.py"
export VIMAGIT_PATH="$PWD"
export TEST_PATH="$PWD/djooks with spaces"
export TEST_SUB_PATH="$PWD/djooks with spaces/books/templates/"
export VADER_PATH=$PWD/vader.vim/
export VIMGAGIT_TEST_VERBOSE=1
export TEST_HEAD_SHA1='origin/vimagit_test-1.7.3'
export TEST_RESET_TAG='reset-here'
Execute (setup): Execute (setup):
source $VIMAGIT_PATH/test/utils.vim source $VIMAGIT_PATH/test/utils.vim
call Cd_test() call Cd_test()
call Git_verbose_log("git reset --hard " . $TEST_HEAD_SHA1)
call system("git reset --hard " . $TEST_HEAD_SHA1)
call Git_verbose_log("git clean -xffd")
call system("git clean -xffd")
call Git_verbose_log("git reset " . $TEST_RESET_TAG)
call system("git reset " . $TEST_RESET_TAG) call system("git reset " . $TEST_RESET_TAG)
call Git_verbose_log("git status --porcelain")
call Git_verbose_log(system("git status --porcelain")) call Git_verbose_log(system("git status --porcelain"))
call Cd_test_sub() call Cd_test_sub()
...@@ -156,7 +156,7 @@ function! Search_file(mode, ...) ...@@ -156,7 +156,7 @@ function! Search_file(mode, ...)
call Git_verbose_log('Search mode: "' . a:mode . '" => ' . getline('.')) call Git_verbose_log('Search mode: "' . a:mode . '" => ' . getline('.'))
let pattern='^.*: ' . call('Get_filename', a:000) . '\%( -> .*\)\?$' let pattern='^.*: ' . call('Get_filename', a:000) . '\%( -> .*\)\?$'
let ret = search(pattern) let ret = search(pattern)
call Git_verbose_log('Search: "' . pattern . '" => ' . getline('.') . ' @line' . line('.')) call Git_verbose_log('Search: "' . pattern . '" => ' . getline('.') . ' @line' . line('.') . ' ret ' .ret)
return ret return ret
endfunction endfunction
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment