Skip to content
Snippets Groups Projects
Commit 8d5f9134 authored by Jérôme Reybert's avatar Jérôme Reybert
Browse files

Merge pull request #7 from jreybert/next

Ready to release 1.2
parents 610a7e77 db72f829
Branches
Tags 1.2
No related merge requests found
Showing
with 717 additions and 239 deletions
language: vim
sudo: false
branches:
only:
- master
- next
os:
- linux
- osx
env:
matrix:
- TEST_SUB_PATH=./
- TEST_SUB_PATH=books/templates/
- VIM_VERSION=normal
- VIM_VERSION=last
- VIM_VERSION=neovim
- VIM_VERSION=macvim
matrix:
allow_failures:
exclude:
- os: osx
env: VIM_VERSION=last
# neovim build fails with homebrew
# Error: undefined method `desc' for Neovim:Class
- os: osx
env: VIM_VERSION=neovim
- os: linux
env: VIM_VERSION=macvim
install:
- if [ "$TRAVIS_OS_NAME" = 'osx' ]; then
if [ "$VIM_VERSION" = 'neovim' ]; then
brew tap neovim/neovim &&
brew tap --repair &&
brew install --HEAD neovim;
elif [ "$VIM_VERSION" = 'macvim' ]; then
brew install macvim;
elif [ "$VIM_VERSION" = 'normal' ]; then
echo "use normal vim";
else
echo "VIM_VERSION is not set";
exit 1;
fi
elif [ "$TRAVIS_OS_NAME" = 'linux' ]; then
if [ "$VIM_VERSION" = 'last' ]; then
sudo add-apt-repository -y ppa:fcwu-tw/ppa &&
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
sudo apt-get -qq install vim;
elif [ "$VIM_VERSION" = 'neovim' ]; then
sudo add-apt-repository -y ppa:neovim-ppa/unstable &&
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
sudo apt-get -qq install neovim;
elif [ "$VIM_VERSION" = 'normal' ]; then
echo "use normal vim";
else
echo "VIM_VERSION is not set";
exit 1;
fi
fi
before_script:
- git clone https://github.com/jreybert/djooks
- git clone https://github.com/junegunn/vader.vim
script:
- ./test/run.sh . vader.vim djooks
install: true
- ./test/run.sh . vader.vim djooks $VIM_VERSION
after_success:
- ./test/merge.sh
......@@ -43,10 +43,13 @@ More to come:
## Usage
IMPORTANT: mappings can have different meanings regarding the cursor position.
**:Magit**
The main magical command, showing vimagit buffer.
### Sections:
IMPORTANT: mappings can have different meanings regarding the cursor position.
There are 3 sections:
* Commit message: this section appears in commit mode (see below). It
contains the message to be commited.
......@@ -60,38 +63,43 @@ There are 3 sections:
These mappings work in normal mode. They can be redefined.
S if cursor is in a hunk, stage/unstage hunk at
cursor position
if cursor is in diff header, stage/unstage whole file
at cursor position
When cursor is in "Unstaged changes" section, it will
stage the hunk/file.
On the other side, when cursor is in "Staged changes"
section, it will unstage hunk/file.
F stage/unstage the whole file at cursor position
When cursor is in "Unstaged changes" section, it will
stage the file.
On the other side, when cursor is in "Staged changes"
section, it will unstage file.
DDD if cursor is in a hunk, discard hunk at cursor position
if cursor is in diff header, discard whole file at
cursor position
When cursor is in "Unstaged changes" section, it will
discard the hunk/file.
R refresh vimagit buffer
C,CC,:w<cr> if not in commit section, set commit mode to "New
commit" and show "Commit message" section with brand new
commit message
if in commit section, commit the all staged changes in
commit mode previously set
CA if not in commit section, set commit mode to "Amend
commit" and show "Commit message" section with previous
commit message
if in commit section, commit the staged changes in
commit mode previously set
CF amend the staged changes into the previous commit,
without modifying previous commit message
I add the file under the cursor in .gitgnore
**S**
* If cursor is in a hunk, stage/unstage hunk at cursor position.
* If cursor is in diff header, stage/unstage whole file at cursor position.
* When cursor is in "Unstaged changes" section, it will stage the hunk/file.
* On the other side, when cursor is in "Staged changes" section, it will unstage hunk/file.
**F**
* Stage/unstage the whole file at cursor position.
* When cursor is in "Unstaged changes" section, it will stage the file.
* On the other side, when cursor is in "Staged changes" section, it will unstage file.
**DDD**
* If cursor is in a hunk, discard hunk at cursor position.
* If cursor is in diff header, discard whole file at cursor position.
* Only works in "Unstaged changes" section.
**C**
**CC**
**:w<cr>**
* If not in commit section, set commit mode to "New commit" and show "Commit message" section with brand new commit message.
* If in commit section, commit the all staged changes in commit mode previously set.
**CA**
* If not in commit section, set commit mode to "Amend commit" and show "Commit message" section with previous commit message.
* If in commit section, commit the staged changes in commit mode previously set.
**CF**
* Amend the staged changes into the previous commit, without modifying previous commit message.
**I**
* Add the file under the cursor in .gitgnore
**R**
* Refresh vimagit buffer
**h**
* Toggle help showing in magit buffer
## Installation
......
......@@ -4,4 +4,3 @@
* fix new empty file staging
* add tests
* add tutorial
* fix new/renamed file diff: it gives an absolute pathname, which is wrong fir diff
......@@ -2,6 +2,7 @@
" These are used to beautify the magit buffer and to help for some block
" selection
let g:magit_sections = {
\ 'info': 'Info',
\ 'staged': 'Staged changes',
\ 'unstaged': 'Unstaged changes',
\ 'commit_start': 'Commit message',
......
......@@ -11,19 +11,18 @@ Plugin Homepage: <https://github.com/jreybert/vimagit>
----- ~
===============================================================================
CONTENTS *vimagitContents*
CONTENTS *vimagit-contents*
1. Introduction ................. |vimagitIntroduction|
2. Installation ................. |vimagitInstallation|
3. Usage ........................ |vimagitUsage|
4. Commands ..................... |vimagitCommands|
5. Customization ................ |vimagitCustomization|
6. FAQ .......................... |vimagitFAQ|
1. Introduction ................. |vimagit-introduction|
2. Installation ................. |vimagit-installation|
3. Usage ........................ |vimagit-usage|
4. Commands ..................... |vimagit-commands|
5. Customization ................ |vimagit-customization|
6. FAQ .......................... |vimagit-FAQ|
===============================================================================
1. INTRODUCTION *vimagitIntroduction*
*vimagit*
1. INTRODUCTION *vimagit-introduction*
vimagit is a plugin which try to mimic the fantastic magit emacs plugin. If you
already know the original plugin, give it a try. If you never have heard about
......@@ -31,7 +30,7 @@ magit (or maybe emacs), this is IMO the most efficient way to stage hunks and
craft nice commits.
===============================================================================
2. INSTALLATION *vimagitInstallation*
2. INSTALLATION *vimagit-installation*
The plugin hierarchy tree respects the vim plugin standard. It is compatible
with pathogen (and most probably vundle).
......@@ -43,18 +42,23 @@ To install:
<
===============================================================================
3. USAGE *vimagitUsage*
3. USAGE *vimagit-usage*
In a git'ed source directory, once you have some unstaged work, simply type
with :Magit , and here is the magic. A new window appears, with all the diffs
and new files in your directory.
===============================================================================
4. COMMANDS *vimagitCommands*
4. COMMANDS *vimagit-commands*
IMPORTANT: mappings can have different meanings regarding the cursor position.
Sections:
*:Magit* *magit#show_magit('v')*
:Magit the main magical command, showing vimagit buffer
Sections: *vimagit-sections*
---------
IMPORTANT: mappings can have different meanings regarding the cursor position.
There are 3 sections:
* Commit message: this section appears in commit mode (see below). It
......@@ -65,45 +69,60 @@ There are 3 sections:
files/hunks.
* Stash list: this section contains all stahes.
These mappings work in normal mode.
S if cursor is in a hunk, stage/unstage hunk at
cursor position
if cursor is in diff header, stage/unstage whole file
at cursor position
When cursor is in "Unstaged changes" section, it will
stage the hunk/file.
On the other side, when cursor is in "Staged changes"
section, it will unstage hunk/file.
F stage/unstage the whole file at cursor position
When cursor is in "Unstaged changes" section, it will
stage the file.
On the other side, when cursor is in "Staged changes"
section, it will unstage file.
DDD if cursor is in a hunk, discard hunk at cursor position
if cursor is in diff header, discard whole file at
cursor position
When cursor is in "Unstaged changes" section, it will
discard the hunk/file.
R refresh vimagit buffer
C,CC,:w<cr> if not in commit section, set commit mode to "New
commit" and show "Commit message" section with brand new
commit message
if in commit section, commit the all staged changes in
commit mode previously set
CA if not in commit section, set commit mode to "Amend
commit" and show "Commit message" section with previous
commit message
if in commit section, commit the staged changes in
commit mode previously set
CF amend the staged changes into the previous commit,
without modifying previous commit message
I add the file under the cursor in .gitgnore
These mappings work in normal mode. *vimagit-mappings*
*vimagit-S* *magit#stage_hunk()*
S If cursor is in a hunk, stage/unstage hunk at cursor position.
If cursor is in diff header, stage/unstage whole file at cursor
position.
When cursor is in "Unstaged changes" section, it will stage the
hunk/file.
On the other side, when cursor is in "Staged changes" section, it
will unstage hunk/file.
*vimagit-F* *magit#stage_file()*
F Stage/unstage the whole file at cursor position.
When cursor is in "Unstaged changes" section, it will stage the
file.
On the other side, when cursor is in "Staged changes" section, it
will unstage file.
*vimagit-DDD* *magit#discard_hunk()*
DDD If cursor is in a hunk, discard hunk at cursor position.
If cursor is in diff header, discard whole file at cursor
position.
Only works in "Unstaged changes" section.
*vimagit-C* *vimagit-CC* *vimagit-:w<cr>* *magit#commit_command('CC')*
C,CC, If not in commit section, set commit mode to "New commit" and show
:w<cr> "Commit message" section with brand new commit message.
If in commit section, commit the all staged changes in commit mode
previously set.
*vimagit-CA* *magit#commit_command('CA')*
CA If not in commit section, set commit mode to "Amend commit" and
show "Commit message" section with previous commit message.
If in commit section, commit the staged changes in commit mode
previously set.
*vimagit-CF* *magit#commit_command('CF')*
CF Amend the staged changes into the previous commit, without
modifying previous commit message
*vimagit-I* *magit#ignore_file()*
I Add the file under the cursor in .gitgnore
*vimagit-R* *magit#update_buffer()*
R Refresh vimagit buffer.
*vimagit-h* *magit#toggle_help()*
h Toggle help showing in magit buffer
===============================================================================
5. CUSTOMISATION *vimagitCustomization*
5. CUSTOMISATION *vimagit-customization*
===============================================================================
6. FAQ *vimagitFAQ*
6. FAQ *vimagit-FAQ*
This diff is collapsed.
Include: setup.inc
# add test
Execute (Add file):
Execute (Stage untracked file with magit#stage_file at file header):
call Cd_test_sub()
Magit
/untracked: bootstrap
call Search_file('unstaged')
call Cursor_position()
call magit#stage_file()
call Cd_test()
let diff=Git_diff('staged', Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_file_diff.expect', diff)
Execute (Unstage file with magit#stage_file at file header):
call Cd_test_sub()
Magit
call Search_file('staged')
call Cursor_position()
call magit#stage_file()
call Cd_test()
let diff=Git_status(Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_unstaged_status.expect', diff)
Execute (Stage untracked file with magit#stage_file):
call Cd_test_sub()
Magit
call Search_file('unstaged')
call Move_relative(+1)
call Cursor_position()
call magit#stage_file()
call Cd_test()
let diff=Git_diff('staged', Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_file_diff.expect', diff)
Execute (Unstage file with magit#stage_file):
call Cd_test_sub()
Magit
call Search_file('staged')
call Move_relative(+1)
call Cursor_position()
call magit#stage_file()
call Cd_test()
let diff=Git_status(Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_unstaged_status.expect', diff)
Execute (Stage untracked file with magit#stage_hunk at file header):
call Cd_test_sub()
Magit
call Search_file('unstaged')
call Cursor_position()
call magit#stage_hunk()
call Cd_test()
let diff=Git_diff('staged', Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_file_diff.expect', diff)
Execute (Unstage file with magit#stage_hunk at file header):
call Cd_test_sub()
Magit
call Search_file('staged')
call Cursor_position()
call magit#stage_hunk()
call Cd_test()
let diff=Git_status(Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_unstaged_status.expect', diff)
Execute (Stage untracked file with magit#stage_hunk on diff header):
call Cd_test_sub()
Magit
call Search_file('unstaged')
call Move_relative(+1)
call Cursor_position()
call magit#stage_hunk()
call Cd_test()
let diff=Git_diff('staged', Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_file_diff.expect', diff)
Execute (Unstage file with magit#stage_hunk on diff header):
call Cd_test_sub()
Magit
call Search_file('staged')
call Move_relative(+1)
call Cursor_position()
call magit#stage_hunk()
call Cd_test()
let diff=Git_status(Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_unstaged_status.expect', diff)
Execute (Stage untracked file with magit#stage_hunk on start hunk):
call Cd_test_sub()
Magit
call Search_file('unstaged')
/^@@
call Cursor_position()
call magit#stage_hunk()
call Cd_test()
let diff=Git_diff('staged', Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_hunk_diff.expect', diff)
Execute (Unstage file with magit#stage_hunk on diff header):
call Cd_test_sub()
Magit
call Search_file('staged')
/^@@
call Cursor_position()
call magit#stage_hunk()
call Cd_test()
let diff=Git_status(Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_unstaged_status.expect', diff)
Execute (Stage untracked file with magit#stage_hunk on end hunk):
call Cd_test_sub()
Magit
call Search_file('unstaged')
/^@@
call Move_relative(+3)
call Cursor_position()
call magit#stage_hunk()
call Cd_test()
let diff=Git_diff('staged', Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_hunk_diff.expect', diff)
Execute (Unstage file with magit#stage_hunk on diff header):
call Cd_test_sub()
Magit
call Search_file('staged')
/^@@
call Move_relative(+3)
call Cursor_position()
call magit#stage_hunk()
call Cd_test()
let diff=Git_status(Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_unstaged_status.expect', diff)
Execute (Stage untracked file with magit#stage_file at file header):
call Cd_test_sub()
Magit
call Search_file('unstaged')
call Cursor_position()
call magit#stage_file()
call Cd_test()
let diff=Git_diff('staged', 'bootstrap')
call Expect_diff(g:test_dir . 'addFile_bootstrap.expect', diff)
let diff=Git_diff('staged', Get_filename())
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_file_diff.expect', diff)
Execute (Commit file):
call Cd_test_sub()
Magit
call magit#commit_command('CC')
put =['Add bootstrap file', '', 'Some description text', 'On multiple lines', '', 'With blanks']
call magit#commit_command('CC')
call Cd_test()
let commit_msg=Git_commit_msg('HEAD')
call Expect_diff(g:test_script_dir . 'addFile/addFile_' . Get_safe_filename() . '_commit.expect', commit_msg)
Include: cleanup.inc
Add bootstrap fileAdd bootstrap file
Some description text
On multiple lines
With blanks
diff --git books/models.py books/models.py
--- books/models.py
+++ books/models.py
@@ -1,5 +1,9 @@
from django.db import models
+import urllib2 as urllib
+from PIL import Image
+import io
+
import isbn_search
class User(models.Model):
@@ -20,20 +24,26 @@ class BookManager(models.Manager):
eisbn = product.eisbn,
author = product.author,
title = product.title,
- edition = product.edition
+ edition = product.edition,
)
+ if product.cover_url is not '':
+ cover_img_bin = urllib.urlopen(product.cover_url)
+ cover_img_file = Image.open(io.BytesIO(cover_img_bin.read()))
+ book.cover_img.save("cover.jpg", cover_img_file)
return book
+def upload_path(book, filename):
+ return 'covers/%s/%s' % (book.isbn, filename)
+
class Book(models.Model):
isbn = models.CharField(max_length=10, unique=True)
- eisbn = models.CharField(max_length=13, blank=True)
+ eisbn = models.CharField(max_length=13, blank=True, null=True)
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
- edition = models.CharField(max_length=200, blank=True)
- cover = models.ImageField(upload_to='covers', blank=True)
+ edition = models.CharField(max_length=200, blank=True, null=True)
+ cover_img = models.ImageField(upload_to=upload_path)
def __unicode__(self):
return u'[%s] "%s" by %s' % (self.isbn, self.title, self.author,)
-
objects = BookManager()
@@ -47,7 +57,7 @@ class Book_copy(models.Model):
class Borrowing(models.Model):
book_copy = models.ForeignKey(Book_copy)
borrower = models.ForeignKey(User)
- borrow_date = models.DateTimeField('date published')
+ date = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
return u'%s loaned by %s since %s' % (self.book_copy.book, self.borrower, self.borrow_date,)
diff --git books/models.py books/models.py
--- books/models.py
+++ books/models.py
@@ -1,5 +1,9 @@
from django.db import models
+import urllib2 as urllib
+from PIL import Image
+import io
+
import isbn_search
class User(models.Model):
@@ -20,20 +24,26 @@ class BookManager(models.Manager):
eisbn = product.eisbn,
author = product.author,
title = product.title,
- edition = product.edition
+ edition = product.edition,
)
+ if product.cover_url is not '':
+ cover_img_bin = urllib.urlopen(product.cover_url)
+ cover_img_file = Image.open(io.BytesIO(cover_img_bin.read()))
+ book.cover_img.save("cover.jpg", cover_img_file)
return book
+def upload_path(book, filename):
+ return 'covers/%s/%s' % (book.isbn, filename)
+
class Book(models.Model):
isbn = models.CharField(max_length=10, unique=True)
- eisbn = models.CharField(max_length=13, blank=True)
+ eisbn = models.CharField(max_length=13, blank=True, null=True)
title = models.CharField(max_length=200)
author = models.CharField(max_length=200)
- edition = models.CharField(max_length=200, blank=True)
- cover = models.ImageField(upload_to='covers', blank=True)
+ edition = models.CharField(max_length=200, blank=True, null=True)
+ cover_img = models.ImageField(upload_to=upload_path)
def __unicode__(self):
return u'[%s] "%s" by %s' % (self.isbn, self.title, self.author,)
-
objects = BookManager()
@@ -47,7 +57,7 @@ class Book_copy(models.Model):
class Borrowing(models.Model):
book_copy = models.ForeignKey(Book_copy)
borrower = models.ForeignKey(User)
- borrow_date = models.DateTimeField('date published')
+ date = models.DateTimeField(auto_now_add=True)
def __unicode__(self):
return u'%s loaned by %s since %s' % (self.book_copy.book, self.borrower, self.borrow_date,)
diff --git books/models.py books/models.py
--- books/models.py
+++ books/models.py
@@ -1,5 +1,9 @@
from django.db import models
+import urllib2 as urllib
+from PIL import Image
+import io
+
import isbn_search
class User(models.Model):
M books/models.py
Add bootstrap fileAdd bootstrap file
Some description text
On multiple lines
With blanks
diff --git bootstrap bootstrap
new file mode 100755
--- /dev/null
+++ bootstrap
@@ -0,0 +1,3 @@
+pip install --user python-amazon-simple-product-api django
+python manage.py migrate
+python manage.py makemigrations books
diff --git bootstrap bootstrap
new file mode 100755
--- /dev/null
+++ bootstrap
@@ -0,0 +1,3 @@
+pip install --user python-amazon-simple-product-api django
+python manage.py migrate
+python manage.py makemigrations books
?? bootstrap
Include: setup.inc
Execute (Ignore untracked file):
call Cd_test_sub()
Magit
call Search_file('unstaged')
call Cursor_position()
call magit#ignore_file()
call Cd_test()
let diff=Git_diff('unstaged', '.gitignore')
call Expect_diff(g:test_script_dir . 'ignoreFile/ignoreFile_' . Get_safe_filename() . '_ignore_diff.expect', diff)
call magit#update_buffer()
Assert (Search_file('unstaged') == 0), $VIMAGIT_TEST_FILENAME . 'should be ignored'
call search('^modified: .gitignore$')
call magit#discard_hunk()
call magit#update_buffer()
Assert (Search_file('unstaged') != 0), $VIMAGIT_TEST_FILENAME . 'should not be ignored anymore'
Include: cleanup.inc
diff --git .gitignore .gitignore
--- .gitignore
+++ .gitignore
@@ -1,3 +1,4 @@
*.py[co]
/db.sqlite3
/books.cfg
+bootstrap
\ No newline at end of file
set -xe
if [[ $# -ne 3 ]]; then
echo "Usage $0 VIMAGIT_PATH VADER_PATH TEST_PATH"
if [[ $# -ne 4 ]]; then
echo "Usage $0 VIMAGIT_PATH VADER_PATH TEST_PATH VIM_VERSION"
exit 1
fi
......@@ -12,16 +12,45 @@ python -c "import os,sys; print(os.path.realpath(os.path.expanduser(sys.argv[1])
export VIMAGIT_PATH=$(prealpath $1)
export VADER_PATH=$(prealpath $2)
export TEST_PATH=$(prealpath $3)
export TEST_SUB_PATH=$(prealpath $TEST_PATH/$TEST_SUB_PATH)
export VIM_VERSION=$4
if [[ ! ( -d $VIMAGIT_PATH && -d $VADER_PATH && -d $TEST_PATH && -d $TEST_SUB_PATH) ]]; then
echo "can't access to one of them '$VIMAGIT_PATH' '$VADER_PATH' '$TEST_PATH' '$TEST_SUB_PATH'"
if [[ ! ( -d $VIMAGIT_PATH && -d $VADER_PATH && -d $TEST_PATH ) ]]; then
echo "can't access to one of them '$VIMAGIT_PATH' '$VADER_PATH' '$TEST_PATH'"
exit 1
fi
pushd $TEST_PATH
git config --local user.email 'tester@vimagit.org'
git config --local user.name 'vimagit tester'
export TEST_HEAD_SHA1='6efcd49'
popd
vim -Nu <(cat << EOF
if [ "$VIM_VERSION" = 'neovim' ]; then
VIM=nvim
elif [ "$VIM_VERSION" = 'macvim' ]; then
VIM=mvim
else
VIM=vim
fi
echo 'Vim version'
$VIM --version
source $VIMAGIT_PATH/test/test.config
for script in ${!test_scripts[@]}; do
for filename in ${test_scripts[$script]}; do
for test_path in ${test_paths[@]}; do
export TEST_SUB_PATH=$(prealpath $TEST_PATH/$test_path)
export VIMAGIT_TEST_FILENAME=$filename
for i in 1 0; do
export VIMAGIT_TEST_FROM_EOL=$i
echo "Test $script with $filename from path $TEST_SUB_PATH and from $([ $i -eq 1 ] && echo "end" || echo "start") of line"
$VIM -Nu <(cat << EOF
filetype off
set rtp-=~/.vim
set rtp-=~/.vim/after
......@@ -29,4 +58,9 @@ set rtp+=$VIMAGIT_PATH
set rtp+=$VADER_PATH
filetype plugin indent on
syntax enable
EOF) -c "Vader! $VIMAGIT_PATH/test/*"
EOF) -c "Vader! $VIMAGIT_PATH/test/$script"
done
done
done
done
Execute (setup):
source $VIMAGIT_PATH/test/utils.vim
cd $TEST_PATH
call Cd_test()
call system("git reset " . $TEST_HEAD_SHA1 . "~1")
cd $TEST_SUB_PATH
call Cd_test_sub()
declare -a test_paths=(./ ./books/templates/)
declare -A test_scripts=( [addFile.vader]='bootstrap books/models.py' [ignoreFile.vader]='bootstrap' )
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment