Source

aurum / test / git.in

:let $LANG="C"
:let g:curtest='gittest'
:W{{{1 Annotate
:Run! AuAnnotate file ./gittestrepo/* | wincmd w
:bwipeout!
:bwipeout!
:W{{{1 Branch
:AuBranch next3 repo ./gittestrepo/
:WT
:W{{{1 Log: nomerges
:Run! AuLog ./gittestrepo/ nomerges
:bwipeout!
:W{{{1 Log: files
:Run! AuLog ./gittestrepo/ showfiles
:bwipeout!
:W{{{1 Log: everything
:Run! AuLog ./gittestrepo/ stat patch showfiles showrenames showcopies
:bwipeout!
:W{{{1 Status: current
:Run! AuStatus ./gitteststatusrepo/
:bwipeout!
:W{{{1 Status: relative to other (1)
:Run! AuStatus ./gitteststatusrepo/ rev1 HEAD^
:bwipeout!
:W{{{1 Status: relative to other (2)
:Run! AuStatus ./gitteststatusrepo/ rev2 HEAD^
:bwipeout!
:W{{{1 Status: between two revisions
:Run! AuStatus ./gittestrepo/ rev1 erevision rev2 next
:bwipeout!
:W{{{1 Branch override fail
:Try AuBranch next repo ./gittestrepo/
:WT
:W{{{1 Branch override
:AuBranch! next repo ./gittestrepo/
:WT
:W{{{1 Name: create tag
:AuName this_is_a_tag type tag repo ./gittestrepo/
:WT
:W{{{1 Name: override tag fail
:Try AuName this_is_a_tag type tag repo ./gittestrepo/ HEAD^^
:WT
:W{{{1 Name: override tag
:AuName! this_is_a_tag type tag repo ./gittestrepo/ HEAD^^
:Run! AuLog ./gittestrepo/ style compact
:bwipeout!
:W{{{1 Name: delete tag
:AuName this_is_a_tag type tag repo ./gittestrepo/ delete
:Run! AuLog ./gittestrepo/ style compact
:bwipeout!
:W{{{1 Name: create branch
:AuName new_branch type branch repo ./gittestrepo/
:WT
:W{{{1 Name: override branch fail
:Try AuName new_branch type branch repo ./gittestrepo/ HEAD^^
:Run! AuLog ./gittestrepo/ style compact
:bwipeout!
:W{{{1 Name: override branch
:Try AuName! new_branch type branch repo ./gittestrepo/ HEAD^^
:Run! AuLog ./gittestrepo/ style compact
:bwipeout!
:W{{{1 Name: delete branch
:AuName new_branch type branch repo ./gittestrepo/ delete
:Run! AuLog ./gittestrepo/ style compact
:bwipeout!
:W{{{1 Commit
:edit ./gittestrepo/newfile.vim
iW In file newfile.vim:write
:Run! AuCommit message Added\ newfile.vim date 1990-10-11 user ZyX\ <zyx@example.by> type unknown ./gittestrepo/newfile.vim
:WT normal! ggdd
:W{{{1 Commit 2
oW File newfile.vim, second line:write
:Run! AuCommit date 1990-10-12 user ZyX\ <zyx@example.by>
Added second line to newfile.vim
// It was not required really:write
:WT normal! ggdd