On Wed, 21 Jan 2009, xulxer wrote:
> Could somebody tell me how to set up vcscommand for use with git?

Bob Hiestand taught me how to use it with git. I attach the email
below.  

Many thanks to Bob.

------------------------------------------------------------------
[..snip..]
Bill,

  Because you use vim, you may be interested in my vcscommand plugin
(available at http://www.vim.org/scripts/script.php?script_id=90).
With that context, I can answer your questions:

  Assuming you're editing glinvc03.ijs:

  :VCSLog --pretty=oneline -3

  This will pull up a buffer with the 3 commits.

  Yank a commit you're interested in, then do:

  :VCSReview <ctrl-r>"

  Which will call :VCSReview with the commit number you just yanked,
which will display (cat) the content of the file.  Repeat with the
other versions as desired.  You can then use the vimdiff machinery to
compare the resulting buffers

  Alternatively, you can use

  :VCSDiff <commit 1 sha1> <commit 2 sha1>

  or

  VCSVimDiff <commit 1 sha1> <commit 2 sha1>

  to get a patch or vimdiff (more helpful) view of the differences.

Thank you,

bob


-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩218 李商隱  無題二首之二
    重帷深下莫愁堂  臥後清宵細細長  神女生涯原是夢  小姑居處本無郎
    風波不信菱枝弱  月露誰教桂葉香  直道相思了無益  未妨惆悵是清狂

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to