Debian Codegraph @

contrib/vim/patchreview.txt

raw
1 *patchreview.txt* Vim global plugin for doing single, multi-patch or diff code reviews
2 Version v0.2.2 (for Vim version 7.0 or higher)
3
4 Author: Manpreet Singh < [email protected] >
5 Copyright (C) 2006-2010 by Manpreet Singh
6 License : This file is placed in the public domain.
7
8 =============================================================================
9
10 CONTENTS *patchreview* *diffreview* *patchreview-contents*
11
12 1. Contents.........................................: |patchreview-contents|
13 2. Introduction.....................................: |patchreview-intro|
14 3. PatchReview options..............................: |patchreview-options|
15 4. PatchReview Usage................................: |patchreview-usage|
16 4.1 DiffReview Usage.............................: |:DiffReview|
17 4.2 PatchReview Usage............................: |:PatchReview|
18
19 =============================================================================
20
21 PatchReview Introduction *patchreview-intro*
22
23 The Patch Review plugin allows easy single or multipatch code or diff reviews.
24
25 It opens each affected file in the patch or in a workspace diff in a diff view
26 in a separate tab.
27
28 VIM provides the |:diffpatch| and related commands to do single file reviews
29 but can not handle patch files containing multiple patches as is common with
30 software development projects. This plugin provides that missing
31 functionality.
32
33 It also improves on |:diffpatch|'s behavior of creating the patched files in
34 the same directory as original file which can lead to project workspace
35 pollution.
36
37 It does automatic diff generation for various version control systems by
38 running their diff command.
39
40 =============================================================================
41
42 PatchReview Options *patchreview-options*
43
44 g:patchreview_patch = {string}
45 Optional path to patch binary. PatchReview tries to locate patch on
46 system path automatically. If the binary is not on system path, this
47 option tell PatchReview the full path to the binary. This option, if
48 specified, overrides the default patch binary on the path.
49
50 examples:
51 (On Windows with Cygwin) >
52 let g:patchreview_patch = 'c:\\cygwin\\bin\\patch.exe'
53 <
54 (On *nix systems) >
55 let g:patchreview_patch = '/usr/bin/gpatch'
56 <
57
58 g:patchreview_filterdiff = {string}
59 Optional path to filterdiff binary. PatchReview tries to locate
60 filterdiff on system path automatically. If the binary is not on system
61 path, this option tell PatchReview the full path to the binary. This
62 option, if specified, overrides the default filterdiff binary on the
63 path.
64
65 examples:
66 (On Windows with Cygwin)
67 >
68 let g:patchreview_filterdiff = 'c:\\cygwin\\bin\\filterdiff.exe'
69 <
70 (On *nix systems)
71 >
72 let g:patchreview_filterdiff = '/usr/bin/filterdiff'
73 <
74 =============================================================================
75
76 PatchReview Usage *patchreview-usage*
77 *:DiffReview*
78
79 :DiffReview
80
81 Perform a diff review in the current directory under version control.
82 Currently supports Mercurial (hg), Subversion (svn), CVS, Bazaar (bzr) and
83 Monotone.
84
85 *:PatchReview*
86
87 :PatchReview patchfile_path [optional_source_directory]
88
89 Perform a patch review in the current directory based on the supplied
90 patchfile_path. If optional_source_directory is specified, patchreview is
91 done on that directory. Otherwise, the current directory is assumed to be
92 the source directory.
93
94 Only supports context or unified format patches.
95
96 ------------------------------------------------------------------------------
97 vim: ft=help:ts=2:sts=2:sw=2:tw=78:norl: