Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
vimagit
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
jreybert
vimagit
Commits
64da4d73
Commit
64da4d73
authored
Jul 6, 2022
by
Jerome Reybert
Browse files
Options
Downloads
Patches
Plain Diff
help debug
parent
76c1fb00
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/env
+8
-0
8 additions, 0 deletions
test/env
test/setup.inc
+7
-1
7 additions, 1 deletion
test/setup.inc
test/utils.vim
+1
-1
1 addition, 1 deletion
test/utils.vim
with
16 additions
and
2 deletions
test/env
0 → 100644
+
8
−
0
View file @
64da4d73
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'
This diff is collapsed.
Click to expand it.
test/setup.inc
+
7
−
1
View file @
64da4d73
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
()
This diff is collapsed.
Click to expand it.
test/utils.vim
+
1
−
1
View file @
64da4d73
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment